vcpkg/ports/libredwg/fix_arm64_build.patch

15 lines
354 B
Diff
Raw Normal View History

2023-03-20 15:12:34 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec2ec1d..910f61c 100644
2023-03-20 15:12:34 +08:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,9 @@ if(MSVC)
else()
2023-03-20 15:12:34 +08:00
set(redwg redwg)
endif()
2023-03-20 15:12:34 +08:00
+if(MSVC AND CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
+ add_compile_options(/Gy)
+endif()
2023-03-20 15:12:34 +08:00
if (EXISTS ".version")
file(READ .version NL_PACKAGE_VERSION)