Skip to content

Commit

Permalink
Do not prevent building with --std=c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhlig1 committed Aug 1, 2018
1 parent 05d1d60 commit 8fb0f79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ String(FIND ${CMAKE_CXX_FLAGS} "-std=c++11" POS_C++11)
If(${POS_C++11} EQUAL -1)
String(FIND ${CMAKE_CXX_FLAGS} "-std=c++14" POS_C++11)
If(${POS_C++11} EQUAL -1)
Message(FATAL_ERROR "FairSoft wasn't compiled with c++11 or c++14 support. Please recompile FairSoft with a compiler which supports at least c++11.")
String(FIND ${CMAKE_CXX_FLAGS} "-std=c++17" POS_C++11)
If(${POS_C++11} EQUAL -1)
Message(FATAL_ERROR "FairSoft wasn't compiled with c++11, c++14 or c++17 support. Please recompile FairSoft with a compiler which supports at least c++11.")
EndIf()
EndIf()
EndIf()

Expand Down

0 comments on commit 8fb0f79

Please sign in to comment.