Problem 1491 - AIDA not found in composite_calorimeter
Summary: AIDA not found in composite_calorimeter
Status: RESOLVED FIXED
Alias: None
Product: Examples/Advanced
Classification: Unclassified
Component: composite_calorimeter (show other problems)
Version: 9.6
Hardware: All All
: P5 trivial
Assignee: Andrea Dotti
URL:
Depends on:
Blocks:
 
Reported: 2013-07-10 19:30 CEST by Mojca Miklavec
Modified: 2013-07-18 10:53 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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