Problem 1491

Summary: AIDA not found in composite_calorimeter
Product: Examples/Advanced Reporter: Mojca Miklavec <mojca.miklavec.lists>
Component: composite_calorimeterAssignee: Andrea Dotti <andrea.dotti>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

Description Mojca Miklavec 2013-07-10 19:30:34 CEST
When building the example the configure script reports:

-- G4 Examples: AIDA package not found. --> CompositeCalorimeter example disabled
-- G4 Examples: AIDA found. --> gammaray_telescope example with AIDA enabled.

I checked the differences. The gammaray_telescope uses:


set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
find_package(AIDA QUIET)
if(AIDA_FOUND)
  message(STATUS "G4 Examples: AIDA found. --> gammaray_telescope example with AIDA enabled.")~
  add_definitions(-DG4ANALYSIS_USE)~~
else()
  message(STATUS "G4 Example: AIDA not found --> gammaray_telescope example with AIDA disabled.")
endif()


while composite_calorimeter uses just


include(${Geant4_USE_FILE})

if(NOT AIDA_FOUND)
  message(STATUS "G4 Examples: AIDA package not found. --> CompositeCalorimeter example disabled")
  return()
else()
  add_definitions(-DG4ANALYSIS_USE)
endif()


Which probably explains the difference.
Comment 1 Andrea Dotti 2013-07-17 16:27:53 CEST
Thanks for reporting.
I will fix this.
Andrea