From 692e7e44db917e68029f271c07ddde19a5e2b777 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Fri, 9 Apr 2021 11:08:35 +0200 Subject: [PATCH] propagate ROOT_GRTEQ_24 properly to the compile options. --- src/classes/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/classes/CMakeLists.txt b/src/classes/CMakeLists.txt index eb822ebf..10662e71 100644 --- a/src/classes/CMakeLists.txt +++ b/src/classes/CMakeLists.txt @@ -159,6 +159,11 @@ target_include_directories( PRgeHandler BEFORE PRIVATE $ ) +#--- add ROOT Version >= 6.24 compile options if needed ----------------------- +if (ROOT_GRTEQ_24) + target_compile_options(PMusr BEFORE PRIVATE "-DROOT_GRTEQ_24") +endif(ROOT_GRTEQ_24) + #--- add OpenMP compile options if needed ------------------------------------- if (OpenMP_FOUND) target_compile_options(PMusr PUBLIC ${OpenMP_CXX_FLAGS})