mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 03:29:01 +08:00
c76e5f092a
* [azure-iot-sdk-c] LTS release 2022-01-21 * bot instructions * bot 2 instructions * Update patches per cmake changes * bot instructions fix * update version * bot instructions Co-authored-by: Mollie Munoz <momuno@microsoft.com> Co-authored-by: Jonliu1993 <13720414433@163.com>
17 lines
537 B
Diff
17 lines
537 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index b72bd41ed..e916728a8 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -123,11 +123,8 @@ if (${warnings_as_errors})
|
|
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()
|
|
endif()
|
|
|