File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,24 @@ project(YSTDLIB_CPP LANGUAGES CXX)
44
55set (YSTDLIB_CPP_VERSION "0.0.1" CACHE STRING "Project version." )
66
7- # Require compiler versions that support the necessary C++20 features
7+ # Require compiler versions that support the C++20 features necessary for compiling ystdlib-cpp
88if ("AppleClang" STREQUAL "${CMAKE_CXX_COMPILER_ID} " )
9- set (CMAKE_CXX_COMPILER_MIN_VERSION "16" )
9+ set (YSTDLIB_CPP_CMAKE_CXX_COMPILER_MIN_VERSION "16" )
1010elseif ("Clang" STREQUAL "${CMAKE_CXX_COMPILER_ID} " )
11- set (CMAKE_CXX_COMPILER_MIN_VERSION "16" )
11+ set (YSTDLIB_CPP_CMAKE_CXX_COMPILER_MIN_VERSION "16" )
1212elseif ("GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID} " )
13- set (CMAKE_CXX_COMPILER_MIN_VERSION "11.4 " )
13+ set (YSTDLIB_CPP_CMAKE_CXX_COMPILER_MIN_VERSION "11" )
1414else ()
1515 message (
1616 FATAL_ERROR
1717 "Unsupported compiler: ${CMAKE_CXX_COMPILER_ID} . Please use AppleClang, Clang, or GNU."
1818 )
1919endif ()
20- if ("${CMAKE_CXX_COMPILER_VERSION} " VERSION_LESS "${CMAKE_CXX_COMPILER_MIN_VERSION } " )
20+ if ("${CMAKE_CXX_COMPILER_VERSION} " VERSION_LESS "${YSTDLIB_CPP_CMAKE_CXX_COMPILER_MIN_VERSION } " )
2121 message (
2222 FATAL_ERROR
2323 "${CMAKE_CXX_COMPILER_ID} version ${CMAKE_CXX_COMPILER_VERSION} is too low. Must be at \
24- least ${CMAKE_CXX_COMPILER_MIN_VERSION } ."
24+ least ${YSTDLIB_CPP_CMAKE_CXX_COMPILER_MIN_VERSION } ."
2525 )
2626endif ()
2727
You can’t perform that action at this time.
0 commit comments