ソースを参照

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.
Brad King 9 年 前
コミット
2d23f7b206
1 ファイル変更3 行追加1 行削除
  1. 3 1
      Modules/Compiler/MSVC-CXX.cmake

+ 3 - 1
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()