aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cfitsio/0006-fix-uwp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cfitsio/0006-fix-uwp.patch')
-rw-r--r--vcpkg/ports/cfitsio/0006-fix-uwp.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/cfitsio/0006-fix-uwp.patch b/vcpkg/ports/cfitsio/0006-fix-uwp.patch
new file mode 100644
index 0000000..cb2fa7f
--- /dev/null
+++ b/vcpkg/ports/cfitsio/0006-fix-uwp.patch
@@ -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)
+