mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
CMake: Verify the GCC host version is new enough to build serenity
There are lots of people who have issues building serenity because they don't read the build directions closely enough and have an unsupported GCC version as their host compiler. Instead of repeatedly having to answer these kinds of questions, lets just error out upfront.
This commit is contained in:
parent
0af192ff8d
commit
dc54a0fbd3
Notes:
sideshowbarker
2024-07-18 17:08:26 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/dc54a0fbd39 Pull-request: https://github.com/SerenityOS/serenity/pull/7616
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,12 @@ if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "")
|
||||||
"and that's all there is.")
|
"and that's all there is.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.2)
|
||||||
|
message(FATAL_ERROR
|
||||||
|
"A GCC version less than 10.2 was detected (${CMAKE_CXX_COMPILER_VERSION}), this is unsupported.\n"
|
||||||
|
"Please re-read the build instructions documentation, and upgrade your host compiler.\n")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CMAKE_INSTALL_MESSAGE NEVER)
|
set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
Loading…
Reference in a new issue