remove unused CXX standards. change boost min version to 1.65

reintroduce c++14
This commit is contained in:
andrea
2022-08-10 11:40:34 +02:00
committed by Uwe
parent 9db5dff744
commit 10a78d91af

View File

@@ -17,9 +17,9 @@ macro(CompilerChecksAndSetups)
add_definitions(-DHAVE_SNPRINTF)
endif()
# Allow developers to use Boost < 1.55
# Allow developers to use Boost < 1.65
if (NOT BOOST_MIN_VERSION)
set(BOOST_MIN_VERSION 1.55)
set(BOOST_MIN_VERSION 1.65)
endif()
# For older cmake versions the variable 'CMAKE_CXX_COMPILER_VERSION' is missing
@@ -48,8 +48,6 @@ macro(CompilerChecksAndSetups)
set(CMAKE_CXX_STANDARD 17)
elseif(${BUILD_ENABLE_CXX_STD} MATCHES "C\\+\\+14")
set(CMAKE_CXX_STANDARD 14)
elseif (${BUILD_ENABLE_CXX_STD} MATCHES "C\\+\\+11")
set(CMAKE_CXX_STANDARD 11)
endif()
# Log the compiler and version