NESTCollaboration / nest

Noble Element Simulation Technique is used to simulate noble-element energy deposition microphysics.
http://nest.physics.ucdavis.edu
Other
23 stars 42 forks source link

Updated G4integration/CMakeLists.txt to fix CMake directory error #178

Closed Noah-Everett closed 11 months ago

Noah-Everett commented 11 months ago

Hello,

I have been encountering the following error when using NEST with a Geant4 simulation:

CMake Error in CMakeLists.txt:
  Imported target "NEST::NESTG4" includes non-existent path

    "/Users/noah-everett/Applications/nest-2.3.12_src/G4integration/G4integration/"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

I believe this is due to the following line in G4integration/CMakeLists.txt: $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/G4integration/>. The issue can be solved by simply removing G4integration/ from the line. I am unsure if this effects anything else for other people.

Hope this is useful!