mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 11:09:11 +08:00
15 lines
475 B
Diff
15 lines
475 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 2c34d7fb..1bedd212 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -446,6 +446,9 @@ if(WARNINGS_AS_ERRORS)
|
|
endif()
|
|
endif()
|
|
|
|
+target_compile_options(datachannel PRIVATE /wd4996)
|
|
+target_compile_options(datachannel-static PRIVATE /wd4996)
|
|
+
|
|
if(DATACHANNEL_STATIC_LINKAGE)
|
|
set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 0)
|