mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 07:29:11 +08:00
ff190a561a
* update 2021-07-27 macOS -> 11.5.1, XCode -> 12.5.1 * update azure-pipelines * update sha of macfuse * change how macos-ci-base works * fix build errors * fix itpp:linux * more fixes * remove tab * allow version changes in all the remove/rename-version patches * fix libunistring for real * robert CR
19 lines
489 B
Diff
19 lines
489 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -34,14 +34,11 @@
|
|
if (MSVC)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /wd4232")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4 /wd4232")
|
|
# Make warning as error
|
|
- add_definitions(/WX)
|
|
else()
|
|
# Make warning as error
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
|
endif()
|
|
|
|
IF(WIN32)
|
|
# windows needs this define
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
|