[cfitsio] fix uwp build (#35009)

This commit is contained in:
autoantwort 2023-11-15 01:09:58 +01:00 committed by GitHub
parent 83712a6060
commit ced9a6771d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 4 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7afb480..4fcdf40 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -195,7 +195,7 @@ IF (BUILD_SHARED_LIBS)
# To expand the command line arguments in Windows, see:
# http://msdn.microsoft.com/en-us/library/8bch7bkk.aspx
- if(MSVC)
+ if(MSVC AND NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
set_target_properties(FPack Funpack PROPERTIES LINK_FLAGS "setargv.obj")
endif(MSVC)

View File

@ -13,6 +13,7 @@ vcpkg_extract_source_archive(
0003-add-Wno-error-implicit-funciton-declaration-to-cmake.patch
0004-pkg-config.patch
0005-fix-link2019-error.patch
0006-fix-uwp.patch
)
vcpkg_check_features(

View File

@ -1,7 +1,7 @@
{
"name": "cfitsio",
"version": "3.49",
"port-version": 4,
"port-version": 5,
"description": "Library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format",
"homepage": "https://heasarc.gsfc.nasa.gov/fitsio/",
"dependencies": [

View File

@ -145,8 +145,6 @@ catch-classic:x86-windows = skip
cctag:x64-windows-static-md=fail
cello:arm64-uwp=fail
cello:x64-uwp=fail
cfitsio:arm64-uwp=fail
cfitsio:x64-uwp=fail
chakracore:x64-linux=skip
# DCMTK currently has a vendored copy of libcharls.a, which causes conflicts with charls (TODO: use charls' copy)
charls:arm64-windows=skip

View File

@ -1506,7 +1506,7 @@
},
"cfitsio": {
"baseline": "3.49",
"port-version": 4
"port-version": 5
},
"cgal": {
"baseline": "5.6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "373230dbd5e9968b5efd6b9d7227accc836b840f",
"version": "3.49",
"port-version": 5
},
{
"git-tree": "b2df854891a5beda50e8cf8004a7af0766c5c5bc",
"version": "3.49",