Skip to content

Commit 6633ca5

Browse files
committed
Enable zpeak benchmark only with cxx standard greater 14
1 parent e6ee302 commit 6633ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/tree/dataframe/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ endif()
3030

3131
add_subdirectory(LoopSUSYFrame)
3232

33-
if(rootbench-datafiles AND ROOT_root7_FOUND) # using ROOT_root7_FOUND as a proxy for "c++ standard >= 14"
33+
if(rootbench-datafiles AND ((CMAKE_CXX_FLAGS STRLESS_EQUAL "-std=c++17") OR (CMAKE_CXX_STANDARD GREATER 14)))
3434
RB_ADD_GBENCHMARK(ZPeak
3535
zpeak.cxx
3636
LIBRARIES Core Hist Imt RIO MathCore Physics Tree TreePlayer ROOTDataFrame ROOTVecOps

0 commit comments

Comments
 (0)