Skip to content

Commit

Permalink
CMake: Print Geant3/4 data directories
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisklein committed Jul 1, 2019
1 parent b1f0fbf commit 3c320e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ find_package2(PUBLIC FlatBuffers)

find_package2(PUBLIC Geant3)
if(Geant3_FOUND)
list(APPEND PROJECT_PACKAGE_COMPONENTS Geant3)
Set(Geant3_LIBRARY_DIR ${Geant3_DIR}/${Geant3_CMAKE_INSTALL_LIBDIR})
Set(G3SYS ${Geant3_DIR})
SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${Geant3_LIBRARY_DIR})
FIND_PATH(Geant3_SYSTEM_DIR NAMES data PATHS
${Geant3_DIR}/../../share/geant3
NO_DEFAULT_PATH)
Expand Down Expand Up @@ -502,6 +499,16 @@ if(PROJECT_PACKAGE_DEPENDENCIES)

message(STATUS " ${BWhite}${dep_padded}${CR}${version_padded}${prefix}")

if(${dep} STREQUAL Geant3)
message(STATUS " G3SYS: ${Geant3_SYSTEM_DIR}")
endif()
if(${dep} STREQUAL Geant4)
foreach(dataset IN LISTS Geant4_DATASETS)
pad(${Geant4_DATASET_${dataset}_ENVVAR} 20 " " envvar_padded LEFT)
message(STATUS " ${envvar_padded}: ${Geant4_DATASET_${dataset}_PATH}")
endforeach()
endif()

unset(version_str)
unset(version_padded)
unset(version_req_str)
Expand Down

0 comments on commit 3c320e3

Please sign in to comment.