Skip to content
Snippets Groups Projects
Commit fdfbe7f1 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1502: warning if GCC is less than 5.0

parent d87b8a93
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,13 @@ set(CMAKE_CXX_STANDARD 14) ...@@ -47,6 +47,13 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_EXTENSIONS OFF)
# Check if compiler is GCC < 5.0
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5)
message(STATUS "WARNING: your GCC version is less than 5.0, support of C++14 may be incomplete.")
endif()
endif()
include(CMakeDependentOption) include(CMakeDependentOption)
# #
# use ExternalProject # use ExternalProject
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment