diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2017-05-10 20:39:53 (GMT) |
---|---|---|
committer | Chuck Atkins <chuck.atkins@kitware.com> | 2017-05-30 13:34:36 (GMT) |
commit | 9b112a848a2063c81fe758984351d765e712a2bc (patch) | |
tree | 6a7021a51fe474418e1e132de7b58095d7936e74 /Modules/Compiler/MSVC-CXX.cmake | |
parent | 37221529c7d032599cd7f8a4bb6778a55b8bc5a8 (diff) | |
download | CMake-9b112a848a2063c81fe758984351d765e712a2bc.zip CMake-9b112a848a2063c81fe758984351d765e712a2bc.tar.gz CMake-9b112a848a2063c81fe758984351d765e712a2bc.tar.bz2 |
Compilers: Port to use default cmake_record_lang_compile_features macros
Diffstat (limited to 'Modules/Compiler/MSVC-CXX.cmake')
-rw-r--r-- | Modules/Compiler/MSVC-CXX.cmake | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake index 98b74e4..9371301 100644 --- a/Modules/Compiler/MSVC-CXX.cmake +++ b/Modules/Compiler/MSVC-CXX.cmake @@ -1,6 +1,8 @@ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. +include(Compiler/CMakeCommonCompilerMacros) + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0) # MSVC has no specific options to set language standards, but set them as # empty strings anyways so the feature test infrastructure can at least check @@ -17,15 +19,3 @@ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0) # There is no meaningful default for this set(CMAKE_CXX_STANDARD_DEFAULT "") endif() - -macro(cmake_record_cxx_compile_features) - if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0) - list(APPEND CMAKE_CXX_COMPILE_FEATURES - cxx_std_98 - cxx_std_11 - cxx_std_14 - cxx_std_17 - ) - _record_compiler_features(CXX "" CMAKE_CXX_COMPILE_FEATURES) - endif() -endmacro() |