We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fb22a8 commit 3aa236aCopy full SHA for 3aa236a
CMakeLists.txt
@@ -54,7 +54,14 @@ include(PytestBenchmark)
54
55
#---Add ROOT include direcories and used compilation flags
56
include_directories(${ROOT_INCLUDE_DIRS})
57
-add_definitions(${ROOT_CXX_FLAGS})
+string(REPLACE " " ";" ROOT_C_FLAGS_LIST ${ROOT_C_FLAGS})
58
+string(REPLACE " " ";" ROOT_CXX_FLAGS_LIST ${ROOT_CXX_FLAGS})
59
+foreach(C_COMPILE_FLAG ${ROOT_C_FLAGS_LIST})
60
+ add_compile_options($<$<COMPILE_LANGUAGE:C>:${C_COMPILE_FLAG}>)
61
+endforeach()
62
+foreach(CXX_COMPILE_FLAG ${ROOT_CXX_FLAGS_LIST})
63
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:${CXX_COMPILE_FLAG}>)
64
65
66
#---Include rootbench options
67
include(RootBenchOptions)
0 commit comments