vcpkg/ports/proj/fix-uwp.patch

18 lines
520 B
Diff
Raw Normal View History

2023-09-14 07:27:43 +08:00
diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt
index cdd85bd3..5c63cab7 100644
--- a/src/apps/CMakeLists.txt
+++ b/src/apps/CMakeLists.txt
@@ -37,10 +37,12 @@ if(NOT MSVC)
else()
+ if(NOT WINDOWS_STORE)
# Linking to setargv.obj enables wildcard globbing for the
# command line utilities, when compiling with MSVC
# https://docs.microsoft.com/cpp/c-language/expanding-wildcard-arguments
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} setargv.obj")
+ endif()
endif()