summaryrefslogtreecommitdiff
path: root/Modules/Compiler/MSVC-C.cmake
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:17 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:17 +0900
commit26b982ef204f01d7ed60688e523d55757b4d8574 (patch)
treeb41b4efffccdeb5279839e157cbc75276e23757e /Modules/Compiler/MSVC-C.cmake
parentef5fd1a2282098bbb9224cc8ca30f0cc5d712545 (diff)
downloadcmake-f551231f410e7587a386309f25a06bb92f870885.tar.gz
cmake-f551231f410e7587a386309f25a06bb92f870885.tar.bz2
cmake-f551231f410e7587a386309f25a06bb92f870885.zip
Imported Upstream version 3.18.3upstream/3.18.3
Diffstat (limited to 'Modules/Compiler/MSVC-C.cmake')
-rw-r--r--Modules/Compiler/MSVC-C.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/MSVC-C.cmake b/Modules/Compiler/MSVC-C.cmake
index a05e6a0bd..31ae7fdec 100644
--- a/Modules/Compiler/MSVC-C.cmake
+++ b/Modules/Compiler/MSVC-C.cmake
@@ -51,6 +51,10 @@ macro(cmake_record_c_compile_features)
list(APPEND CMAKE_C_COMPILE_FEATURES c_restrict)
list(APPEND CMAKE_C99_COMPILE_FEATURES c_restrict)
endif()
+ if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 19.28)
+ list(APPEND CMAKE_C_COMPILE_FEATURES c_static_assert)
+ list(APPEND CMAKE_C11_COMPILE_FEATURES c_static_assert)
+ endif()
set(_result 0) # expected by cmake_determine_compile_features
endmacro()