diff --git a/CMakeLists.txt b/CMakeLists.txt index b34face2240a6ebfeb8c8b27514269f38bd337b6..f5534af8ba553e8f2c4d65f38a203c53bc5bbc00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,5 +15,5 @@ endif() gaudi_project(CEPCSW v0r1 USE Gaudi v33r1 - K4FWCore v0r1 + USE K4FWCore v0r1 ) \ No newline at end of file diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index 927eced88ef44130e21546a9347a2ee42b5cbcda..d9e582958f2268d703c1cca13597776798d09369 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -22,8 +22,9 @@ gaudi_install_headers(Examples) # Modules gaudi_add_module(Examples ${Examples_srcs} INCLUDE_DIRS K4FWCore GaudiAlgLib GaudiKernel ${plcio_INCLUDE_DIRS} ${podio_INCLUDE_DIRS} ${LCIO_INCLUDE_DIRS} - LINK_LIBRARIES K4FWCore GaudiAlgLib GaudiKernel ${podio_LIBRARIES} ${LCIO_LIBRARIES} $ENV{PLCIO}/lib/libplcio.so - EDM4HEP::edm4hep EDM4HEP::edm4hepDict + LINK_LIBRARIES K4FWCore GaudiAlgLib GaudiKernel ${LCIO_LIBRARIES} $ENV{PLCIO}/lib/libplcio.so + # Force loading the libraries. + -Wl,--no-as-needed EDM4HEP::edm4hep EDM4HEP::edm4hepDict ${podio_LIBRARIES} podio::podioRootIO -Wl,--as-needed ) # Unit tests