Lagom: Update GCC version check in CMakeLists.txt

This was forgotten in bc2ebcadc0.
This commit is contained in:
Linus Groh 2022-10-31 14:08:39 +00:00
parent f99d356a17
commit f01d90aa63
Notes: sideshowbarker 2024-07-17 04:58:11 +09:00

View file

@ -8,9 +8,9 @@ project(
LANGUAGES C CXX
)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "11")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "12")
message(FATAL_ERROR
"A GCC version less than 11 was detected (${CMAKE_CXX_COMPILER_VERSION}), this is unsupported.\n"
"A GCC version less than 12 was detected (${CMAKE_CXX_COMPILER_VERSION}), this is unsupported.\n"
"Please re-read the build instructions documentation, and upgrade your host compiler.\n")
endif()