File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.16.3)
22
33# Force minimum compiler versions to support full C++20 features
4- set (CMAKE_CXX_COMPILER_MIN_VERSION "" )
54if ("AppleClang" STREQUAL "${CMAKE_CXX_COMPILER_ID} " )
65 set (CMAKE_CXX_COMPILER_MIN_VERSION "16" )
76elseif ("Clang" STREQUAL "${CMAKE_CXX_COMPILER_ID} " )
87 set (CMAKE_CXX_COMPILER_MIN_VERSION "16" )
98elseif ("GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID} " )
109 set (CMAKE_CXX_COMPILER_MIN_VERSION "11.4" )
10+ else ()
11+ # Unset the minimum required version variable so the comparison test always evaluates to true
12+ set (CMAKE_CXX_COMPILER_MIN_VERSION "" )
1113endif ()
12- if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS ${CMAKE_CXX_COMPILER_MIN_VERSION} )
14+ if (" ${CMAKE_CXX_COMPILER_VERSION} " VERSION_LESS " ${CMAKE_CXX_COMPILER_MIN_VERSION} " )
1315 message (
1416 FATAL_ERROR
1517 "${CMAKE_CXX_COMPILER_ID} version must be at least ${CMAKE_CXX_COMPILER_MIN_VERSION} !"
You can’t perform that action at this time.
0 commit comments