From c78bb197009e31bd5efaf67dd79025f840569c5e Mon Sep 17 00:00:00 2001 From: Kamil Skwarczynski Date: Wed, 30 Oct 2024 11:12:20 +0000 Subject: [PATCH] use Luke cmake hack --- CMakeLists.txt | 1 + cmake/Templates/MaCh3Config.cmake.in | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23c4bb004..0dffa34e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,7 @@ if(ROOT_CXX_STANDARD LESS 14 AND ROOT_VERSION VERSION_LESS 6.32.00) endif() set(MACH3_CXX_STANDARD ${CMAKE_CXX_STANDARD}) +set_property(GLOBAL PROPERTY MACH3_CXX_STANDARD "${MACH3_CXX_STANDARD}") ############################ Setting Flags #################################### cmessage(STATUS "CMAKE_INSTALL_PREFIX: \"${CMAKE_INSTALL_PREFIX}\"") diff --git a/cmake/Templates/MaCh3Config.cmake.in b/cmake/Templates/MaCh3Config.cmake.in index 60ae78513..01b67485c 100644 --- a/cmake/Templates/MaCh3Config.cmake.in +++ b/cmake/Templates/MaCh3Config.cmake.in @@ -12,6 +12,7 @@ set(MaCh3_GPU_ENABLED @MaCh3_GPU_ENABLED@) set(MaCh3_PYTHON_ENABLED @MaCh3_PYTHON_ENABLED@) set(MaCh3_MINUIT2_ENABLED @MaCh3_MINUIT2_ENABLED@) set(MACH3_CXX_STANDARD @MACH3_CXX_STANDARD@) +set_property(GLOBAL PROPERTY MACH3_CXX_STANDARD "${MACH3_CXX_STANDARD}") get_filename_component(MaCh3_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) list(APPEND CMAKE_MODULE_PATH "${MaCh3_CMAKE_DIR}")