mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 13:18:10 +08:00
14 lines
609 B
Diff
14 lines
609 B
Diff
|
diff --git a/scripts/CMake/CommonCppFlags.cmake b/scripts/CMake/CommonCppFlags.cmake
|
||
|
index 566fbee..4fcca61 100644
|
||
|
--- a/scripts/CMake/CommonCppFlags.cmake
|
||
|
+++ b/scripts/CMake/CommonCppFlags.cmake
|
||
|
@@ -54,7 +54,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||
|
message(FATAL_ERROR "Building with a gcc version less than 4.7.3 is not supported.")
|
||
|
endif()
|
||
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest /W4 /permissive-")
|
||
|
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest /W4 /permissive- /Zc:char8_t-")
|
||
|
endif()
|
||
|
|
||
|
|