From 1c7efa572248734088976469dfe25d220cab7e4c Mon Sep 17 00:00:00 2001 From: lintao <lintao51@gmail.com> Date: Mon, 11 May 2020 20:55:12 +0800 Subject: [PATCH] WIP: force link the dict. --- CMakeLists.txt | 2 +- Examples/CMakeLists.txt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b34face2..f5534af8 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 927eced8..d9e58295 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 -- GitLab