mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-20 16:47:55 +08:00
17 lines
823 B
Diff
17 lines
823 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 4484e373..87b5ed41 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -81,9 +81,9 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||
|
set (WARN_FLAGS "${WARN_FLAGS} -Wno-covered-switch-default")
|
||
|
set (WARN_FLAGS "${WARN_FLAGS} -Wno-missing-noreturn -Wno-unknown-pragmas")
|
||
|
set (WARN_FLAGS "${WARN_FLAGS} -Wno-gnu-zero-variadic-macro-arguments")
|
||
|
- set (WARN_FLAGS "${WARN_FLAGS} -Wconversion -Werror")
|
||
|
+ set (WARN_FLAGS "${WARN_FLAGS} -Wconversion")
|
||
|
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||
|
- set (WARN_FLAGS "-Wall -Wno-unknown-pragmas -Wconversion -Werror")
|
||
|
+ set (WARN_FLAGS "-Wall -Wno-unknown-pragmas -Wconversion")
|
||
|
if (CMAKE_CXX_COMPILER_VERSION STREQUAL "" OR
|
||
|
CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7")
|
||
|
set (CXX11_FLAGS "-std=c++0x")
|