[cmake-developers] [CMake 0015494]: _cmake_feature_test_cxx_generalized_initializers present in MSVC 18.0.31101.1

Mantis Bug Tracker mantis at public.kitware.com
Fri Apr 3 13:05:28 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15494 
====================================================================== 
Reported By:                B. Scott Michel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15494
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-04-03 13:05 EDT
Last Modified:              2015-04-03 13:05 EDT
====================================================================== 
Summary:                    _cmake_feature_test_cxx_generalized_initializers
present in MSVC 18.0.31101.1
Description: 
This feature is available in Visual Studio 12's C++ compiler, version
18.0.31101.0. There are probably more features that this version of the compiler
supports; this one just happens to be important to me. Suggest the following:

--- /c/tmp/MSVC-CXX-FeatureTests.cmake.orig.cmake       Fri Apr  3 09:52:49 2015
+++ MSVC-CXX-FeatureTests.cmake Fri Apr  3 09:53:22 2015
@@ -8,6 +8,8 @@
 set(_cmake_oldestSupported "_MSC_VER >= 1600")

 set(MSVC_2015 "_MSC_VER >= 1900")
+set(MSVC_2013_v31101 "_MSC_FULL_VER >= 180031101")
+
 set(_cmake_feature_test_cxx_alignas "${MSVC_2015}")
 set(_cmake_feature_test_cxx_alignof "${MSVC_2015}")
 set(_cmake_feature_test_cxx_binary_literals "${MSVC_2015}")
@@ -21,7 +23,7 @@
 # they silently produced bad code, and are now marked as having partial
 # support in previous versions. The footnote says the support will be complete
 # in MSVC 2015, so support the feature for that version, assuming that is true.
-set(_cmake_feature_test_cxx_generalized_initializers "${MSVC_2015}")
+set(_cmake_feature_test_cxx_generalized_initializers "${MSVC_2013_v31101}")
 set(_cmake_feature_test_cxx_nonstatic_member_init "${MSVC_2015}")
 # Microsoft calls this 'rvalue references v3'
 set(_cmake_feature_test_cxx_defaulted_move_initializers "${MSVC_2015}")
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-04-03 13:05 B. Scott MichelNew Issue                                    
======================================================================



More information about the cmake-developers mailing list