mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 15:39:13 +08:00
13 lines
397 B
Diff
13 lines
397 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 439e26a..05416d8 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -187,6 +187,7 @@ endforeach(flag ${test_flags})
|
|
|
|
if(MSVC)
|
|
set(CMAKE_DEBUG_POSTFIX "d")
|
|
+ add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS /wd4996)
|
|
endif()
|
|
|
|
option(ld-version-script "Enable linker version script" ON)
|