summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-02 13:41:13 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-02 13:42:18 (GMT)
commit2d23f7b206c908e55999143487548e2d6a92bc79 (patch)
tree88dc484c9a507f00faa4de7eded84f8b0468f239
parentab2ae4823c3b60347825da4b851cd4e676f8bed1 (diff)
downloadCMake-2d23f7b206c908e55999143487548e2d6a92bc79.zip
CMake-2d23f7b206c908e55999143487548e2d6a92bc79.tar.gz
CMake-2d23f7b206c908e55999143487548e2d6a92bc79.tar.bz2
Features: Do not record features on MSVC < 2010
We have no feature tests for versions of VS older than 2010, so do not even call `record_compiler_features` for such versions. This is consistent with other compilers where we call this macro only for versions for which we have recorded features.
-rw-r--r--Modules/Compiler/MSVC-CXX.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake
index 82ce069..681ee70 100644
--- a/Modules/Compiler/MSVC-CXX.cmake
+++ b/Modules/Compiler/MSVC-CXX.cmake
@@ -5,5 +5,7 @@ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0)
endif()
macro(cmake_record_cxx_compile_features)
- record_compiler_features(CXX "" CMAKE_CXX_COMPILE_FEATURES)
+ if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16.0)
+ record_compiler_features(CXX "" CMAKE_CXX_COMPILE_FEATURES)
+ endif()
endmacro()