[sundials] Add patch for uwp

This commit is contained in:
Alexander Karatarakis 2018-06-12 22:15:10 -07:00
parent cf4a688e44
commit 7d899bb453
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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)