diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ff4ba763a..33b356d51c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,6 +69,11 @@ option(SKIP_DESKTOP "Skip building of desktop application" OFF) option(BUILD_MAPSHOT "Build mapshot tool" OFF) option(USE_PCH "Use precompiled headers" OFF) +if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND + CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0) + message(FATAL_ERROR "Minimum supported g++ version is 7.0") +endif() + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(PCH_EXTENSION "pch") endif()