mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:41:39 +08:00
dd4c769a89
* [eastl] Fix error C2338 * update patch * Add license Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
15 lines
568 B
Diff
15 lines
568 B
Diff
diff --git a/scripts/CMake/CommonCppFlags.cmake b/scripts/CMake/CommonCppFlags.cmake
|
|
index 08b6af5..281665e 100644
|
|
--- a/scripts/CMake/CommonCppFlags.cmake
|
|
+++ b/scripts/CMake/CommonCppFlags.cmake
|
|
@@ -74,6 +74,9 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
endif()
|
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest /W4 /permissive-")
|
|
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.31.30911.95")
|
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:static_assert-")
|
|
+ endif()
|
|
endif()
|
|
|
|
|