From 9a0514c598368dfee737d756124c2ed38fd8ac9f Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Wed, 23 Mar 2022 11:04:11 +0100 Subject: [PATCH] Check the c++ standard --- compiler.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler.cmake b/compiler.cmake index a0ac042..b68d2ed 100644 --- a/compiler.cmake +++ b/compiler.cmake @@ -127,8 +127,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse" ) endif() - # Check which version of c++ we can use. We drill down from c++17 to c98 - CHECK_CXX_COMPILER_FLAG( -stdc++17 cxxresult ) + MESSAGE(STATUS "Checking the c++ Standard supported by the compiler" ) + # Check which version of c++ we can use. We drill down from c++17 to c96 + CHECK_CXX_COMPILER_FLAG( -std=c++17 cxxresult ) if( NOT cxxresult ) CHECK_CXX_COMPILER_FLAG( -std=c++14 cxxresult ) if( NOT cxxresult ) -- libgit2 0.21.4