mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
15 lines
571 B
Diff
15 lines
571 B
Diff
diff --git a/cmake/compiler_settings.cmake b/cmake/compiler_settings.cmake
|
|
index a7689dc595..13e594f12c 100644
|
|
--- a/cmake/compiler_settings.cmake
|
|
+++ b/cmake/compiler_settings.cmake
|
|
@@ -153,9 +153,6 @@ macro(set_msvc_warnings)
|
|
endif()
|
|
|
|
# warnings as errors, max warning level (4)
|
|
- if(NOT CMAKE_CXX_FLAGS MATCHES "/WX")
|
|
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
|
|
- endif()
|
|
|
|
# taken from http://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake
|
|
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
|