summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-MSVC-C.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2014-12-22 15:25:18 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-11 15:47:58 (GMT)
commit64c30bdc48d0a3e1da48fdbfeb200740fa5dac43 (patch)
tree594a91878a7d178e026c4079b04def6c964074d7 /Modules/Platform/Windows-MSVC-C.cmake
parent225c0ef88bf21c39694b51798390b87328a163de (diff)
downloadCMake-64c30bdc48d0a3e1da48fdbfeb200740fa5dac43.zip
CMake-64c30bdc48d0a3e1da48fdbfeb200740fa5dac43.tar.gz
CMake-64c30bdc48d0a3e1da48fdbfeb200740fa5dac43.tar.bz2
Features: Record for MSVC C++ 2015 and MSVC C 2010-2015.
Initializer lists are only properly supported in 2015 and above. Previous Visual Studio releases said they supported initializer lists but silently produced bad code.
Diffstat (limited to 'Modules/Platform/Windows-MSVC-C.cmake')
-rw-r--r--Modules/Platform/Windows-MSVC-C.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-MSVC-C.cmake b/Modules/Platform/Windows-MSVC-C.cmake
index cbe1586..c7792eb 100644
--- a/Modules/Platform/Windows-MSVC-C.cmake
+++ b/Modules/Platform/Windows-MSVC-C.cmake
@@ -3,3 +3,5 @@ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 18.0)
set(_FS_C " /FS")
endif()
__windows_compiler_msvc(C)
+
+set(CMAKE_C_STANDARD_DEFAULT 90)