vcpkg/ports/libyuv/deprecated-warning.patch
Levin Li 7bb175eafe
[aom/libavif] Add support for ARM and UWP (#20636)
* 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>
2021-12-07 12:34:46 -08:00

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 )