Commit 9a0514c598368dfee737d756124c2ed38fd8ac9f
1 parent
9075e962
Check the c++ standard
Showing
1 changed file
with
3 additions
and
2 deletions
compiler.cmake
@@ -127,8 +127,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) | @@ -127,8 +127,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) | ||
127 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse" ) | 127 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse" ) |
128 | endif() | 128 | endif() |
129 | 129 | ||
130 | - # Check which version of c++ we can use. We drill down from c++17 to c98 | ||
131 | - CHECK_CXX_COMPILER_FLAG( -stdc++17 cxxresult ) | 130 | + MESSAGE(STATUS "Checking the c++ Standard supported by the compiler" ) |
131 | + # Check which version of c++ we can use. We drill down from c++17 to c96 | ||
132 | + CHECK_CXX_COMPILER_FLAG( -std=c++17 cxxresult ) | ||
132 | if( NOT cxxresult ) | 133 | if( NOT cxxresult ) |
133 | CHECK_CXX_COMPILER_FLAG( -std=c++14 cxxresult ) | 134 | CHECK_CXX_COMPILER_FLAG( -std=c++14 cxxresult ) |
134 | if( NOT cxxresult ) | 135 | if( NOT cxxresult ) |