From cbc462e159086402950ba2ea8d2d3df2d408b5c0 Mon Sep 17 00:00:00 2001 From: Marko Petric <marko.petric@cern.ch> Date: Tue, 22 Oct 2019 11:31:07 +0200 Subject: [PATCH] use LIBRARY_OUTPUT_PATH in dictionary creation --- examples/DDG4/CMakeLists.txt | 4 ++-- examples/DDG4_MySensDet/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/DDG4/CMakeLists.txt b/examples/DDG4/CMakeLists.txt index 1c17a7940..3655aa27a 100644 --- a/examples/DDG4/CMakeLists.txt +++ b/examples/DDG4/CMakeLists.txt @@ -14,9 +14,9 @@ IF(NOT TARGET DD4hep::DDCore) find_package ( DD4hep REQUIRED ) include ( ${DD4hep_DIR}/cmake/DD4hep.cmake ) include ( ${DD4hep_DIR}/cmake/DD4hepBuild.cmake ) + dd4hep_configure_output() ENDIF() -dd4hep_configure_output() dd4hep_set_compiler_flags() #========================================================================== @@ -29,7 +29,7 @@ if (DD4HEP_USE_GEANT4) dd4hep_add_dictionary(G__DDG4UserDict SOURCES ${DD4hep_DIR}/include/ROOT/Warnings.h src/Dictionary.h LINKDEF ${DD4hep_DIR}/include/ROOT/LinkDef.h - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib + OUTPUT ${LIBRARY_OUTPUT_PATH} ) #---- Example of a client library with user defined plugins -------------------- dd4hep_add_plugin( DDG4UserLib diff --git a/examples/DDG4_MySensDet/CMakeLists.txt b/examples/DDG4_MySensDet/CMakeLists.txt index b27fc3d4d..f743a1c96 100644 --- a/examples/DDG4_MySensDet/CMakeLists.txt +++ b/examples/DDG4_MySensDet/CMakeLists.txt @@ -14,9 +14,9 @@ IF(NOT TARGET DD4hep::DDCore) find_package ( DD4hep REQUIRED ) include ( ${DD4hep_DIR}/cmake/DD4hep.cmake ) include ( ${DD4hep_DIR}/cmake/DD4hepBuild.cmake ) + dd4hep_configure_output() ENDIF() -dd4hep_configure_output() dd4hep_set_compiler_flags() #========================================================================== if(NOT TARGET Geant4::Interface) @@ -38,7 +38,7 @@ if (DD4HEP_USE_GEANT4) dd4hep_add_dictionary(G__DDG4_MySensDet SOURCES ${DD4hep_DIR}/include/ROOT/Warnings.h src/MyTrackerHit.h LINKDEF ${DD4hep_DIR}/include/ROOT/LinkDef.h - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib + OUTPUT ${LIBRARY_OUTPUT_PATH} ) #---- Example of a client library with user defined plugins -------------------- -- GitLab