diff --git a/DDSense/CMakeLists.txt b/DDSense/CMakeLists.txt index 440a61852866d9dc9e4f6be7ec64a6892d64afe5..e1c3c0f960bb12cd41efb22dbf1b20a9edf7ef9b 100644 --- a/DDSense/CMakeLists.txt +++ b/DDSense/CMakeLists.txt @@ -38,11 +38,11 @@ file(GLOB exsrc example/*.cpp) # list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/src/Geant4XML.cpp) #endif() add_library(DD4hepSenseExample SHARED ${exsrc} ) -target_link_libraries(DD4hepSenseExample DD4hepSense ${Geant4_LIBRARIES}) +target_link_libraries(DD4hepSenseExample DD4hepSense ${Geant4_LIBRARIES} ${CMAKE_DL_LIBS} ) #----------------------------------------------------------------------------------- add_executable(ddsense_example example/ddsense_example.cpp ) -target_link_libraries(ddsense_example DD4hepSense) +target_link_libraries(ddsense_example DD4hepSense ${CMAKE_DL_LIBS} ) #--- install target-------------------------------------