diff --git a/cmake/DD4hepConfig.cmake.in b/cmake/DD4hepConfig.cmake.in index 2f69d7beda5b197962a3728892177613e5fe0589..b35ee75ce133d9b8b8a6055c7650d85ba1a8b401 100644 --- a/cmake/DD4hepConfig.cmake.in +++ b/cmake/DD4hepConfig.cmake.in @@ -43,9 +43,9 @@ INCLUDE( ${DD4hep_ROOT}/cmake/DD4hepMacros.cmake ) # additional components are set by cmake in variable PKG_FIND_COMPONENTS # first argument should be the package name if(@DD4HEP_WITH_GEANT4@) - CHECK_PACKAGE_LIBS( DD4hep DD4hepCore DD4hepPlugins DD4hepG4 ) + CHECK_PACKAGE_LIBS( DD4hep DD4hepCore DDSegmentation DD4hepPlugins DD4hepG4 ) else() - CHECK_PACKAGE_LIBS( DD4hep DD4hepCore DD4hepPlugins ) + CHECK_PACKAGE_LIBS( DD4hep DD4hepCore DDSegmentation DD4hepPlugins ) endif()