mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 10:27:56 +08:00
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)
|
||
|
|