mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 00:51:36 +08:00
14 lines
424 B
Diff
14 lines
424 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index e6c6054..2c4b757 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -124,6 +124,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||
|
add_definitions(-DOS_FREEBSD)
|
||
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||
|
add_definitions(-DOS_MACOSX)
|
||
|
+elseif(MSVC)
|
||
|
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||
|
endif()
|
||
|
|
||
|
function(transform_sources_list INPUT_FILE OUTPUT_FILE)
|