From 7d899bb45333006463bfd9512507131e81e2ec18 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Tue, 12 Jun 2018 22:15:10 -0700 Subject: [PATCH] [sundials] Add patch for uwp --- ports/sundials/portfile.cmake | 6 ++++++ ports/sundials/uwp-c4703-warning.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ports/sundials/uwp-c4703-warning.patch diff --git a/ports/sundials/portfile.cmake b/ports/sundials/portfile.cmake index 52c7ca4a18..6798f02727 100644 --- a/ports/sundials/portfile.cmake +++ b/ports/sundials/portfile.cmake @@ -10,6 +10,12 @@ vcpkg_download_distfile(ARCHIVE_FILE ) vcpkg_extract_source_archive(${ARCHIVE_FILE}) +vcpkg_apply_patches( + SOURCE_PATH ${SOURCE_PATH} + PATCHES + ${CMAKE_CURRENT_LIST_DIR}/uwp-c4703-warning.patch +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} OPTIONS -DEXAMPLES_ENABLE=OFF diff --git a/ports/sundials/uwp-c4703-warning.patch b/ports/sundials/uwp-c4703-warning.patch new file mode 100644 index 0000000000..3718753cfb --- /dev/null +++ b/ports/sundials/uwp-c4703-warning.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4030f4d..afef556 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -602,6 +602,7 @@ MARK_AS_ADVANCED(FORCE SUNDIALS_DEVTESTS) + + IF(WIN32) + ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) ++ ADD_COMPILE_OPTIONS(/wd4703) # Needed for uwp + ENDIF(WIN32) + + IF(APPLE)