mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[sundials] Add patch for uwp
This commit is contained in:
parent
cf4a688e44
commit
7d899bb453
@ -10,6 +10,12 @@ vcpkg_download_distfile(ARCHIVE_FILE
|
|||||||
)
|
)
|
||||||
vcpkg_extract_source_archive(${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(
|
vcpkg_configure_cmake(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
OPTIONS -DEXAMPLES_ENABLE=OFF
|
OPTIONS -DEXAMPLES_ENABLE=OFF
|
||||||
|
12
ports/sundials/uwp-c4703-warning.patch
Normal file
12
ports/sundials/uwp-c4703-warning.patch
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user