mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 01:51:36 +08:00
7bb175eafe
* Support libavif building on UWP and ARM Remove deprecated functions Bump port version Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Bump version Add version all use patches * Add version * Disable deprecated functions using _CRT_SECURE_NO_WARNINGS rather than disabling 4996. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
17 lines
478 B
Diff
17 lines
478 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index cc49726..25d6ff1 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -10,6 +10,11 @@ OPTION( TEST "Built unit tests" OFF )
|
|
|
|
SET( CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON )
|
|
|
|
+if (MSVC)
|
|
+ # Allow deprecated functions
|
|
+ add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
|
+endif()
|
|
+
|
|
SET ( ly_base_dir ${PROJECT_SOURCE_DIR} )
|
|
SET ( ly_src_dir ${ly_base_dir}/source )
|
|
SET ( ly_inc_dir ${ly_base_dir}/include )
|