Skip to content

Commit 3b147e4

Browse files
stwunscheguiraud
authored andcommitted
use regex for finding c++17 in CXX flags
1 parent 4699532 commit 3b147e4

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
@@ -36,7 +36,7 @@ endif()
3636

3737
add_subdirectory(LoopSUSYFrame)
3838

39-
if(rootbench-datafiles AND ((CMAKE_CXX_FLAGS STRLESS_EQUAL "-std=c++17") OR (CMAKE_CXX_STANDARD GREATER 14)))
39+
if(rootbench-datafiles AND ((CMAKE_CXX_FLAGS MATCHES "-std=c\\+\\+17") OR (CMAKE_CXX_STANDARD GREATER 14)))
4040
RB_ADD_GBENCHMARK(ZPeak
4141
zpeak.cxx
4242
LIBRARIES Core Hist Imt RIO MathCore Physics Tree TreePlayer ROOTDataFrame ROOTVecOps

0 commit comments

Comments
 (0)