diff --git a/NPSimulation/CMakeLists.txt b/NPSimulation/CMakeLists.txt index 38fb9a2a492d5db6fda04714f1f0b36962c380e5..91a51df01e8fece16f982516d1736b563cb89c2e 100644 --- a/NPSimulation/CMakeLists.txt +++ b/NPSimulation/CMakeLists.txt @@ -38,9 +38,9 @@ string(REPLACE "${NPS_GEANT4_VERSION_MINOR}." "" G4Version "${G4Version}") set(NPS_GEANT4_VERSION_PATCH "${G4Version}") message ("Geant4 found, Version : ${NPS_GEANT4_VERSION_MAJOR}.${NPS_GEANT4_VERSION_MINOR}.${NPS_GEANT4_VERSION_PATCH}") - include(${Geant4_USE_FILE}) add_definitions(${Geant4_DEFINITIONS}) +include_directories(${Geant4_INCLUDE_DIRS}) configure_file(Core/NPSimulationVersion.hh.in Core/NPSimulationVersion.hh @ONLY)