diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-04-29 21:20:14 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2019-05-02 14:23:25 (GMT) |
commit | 3dbec532555eb4d088f35b4a2593ca1cc247dab0 (patch) | |
tree | c4ff765bf8d93fa7878babb9c397cc3573b1b583 /Modules/Compiler/GNU-CXX.cmake | |
parent | fb325daa55b1bd6aa2b2b7f2c615214378224938 (diff) | |
download | CMake-3dbec532555eb4d088f35b4a2593ca1cc247dab0.zip CMake-3dbec532555eb4d088f35b4a2593ca1cc247dab0.tar.gz CMake-3dbec532555eb4d088f35b4a2593ca1cc247dab0.tar.bz2 |
CompileFeatures: Record when compilers gained full CXX14 support
Use the infrastructure added by commit 646fb1a646 (CompileFeatures:
memoize C++ compilers with full language level support, 2019-03-27) to
avoid using a `try_compile` to check for C++14 feature support when the
running compiler is known to have all features.
Diffstat (limited to 'Modules/Compiler/GNU-CXX.cmake')
-rw-r--r-- | Modules/Compiler/GNU-CXX.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU-CXX.cmake b/Modules/Compiler/GNU-CXX.cmake index 1253291..fcaaeab 100644 --- a/Modules/Compiler/GNU-CXX.cmake +++ b/Modules/Compiler/GNU-CXX.cmake @@ -38,6 +38,10 @@ elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8) set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std=gnu++1y") endif() +if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0) + set(CMAKE_CXX14_STANDARD__HAS_FULL_SUPPORT ON) +endif() + if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0) set(CMAKE_CXX17_STANDARD_COMPILE_OPTION "-std=c++17") set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION "-std=gnu++17") |