vcpkg/ports/zint/0004-windows-static-build.patch

16 lines
404 B
Diff
Raw Normal View History

2022-12-20 06:31:53 +08:00
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt
index d779033..133abef 100644
--- a/backend/CMakeLists.txt
+++ b/backend/CMakeLists.txt
@@ -80,7 +80,9 @@ if(NOT MSVC)
endif()
if(MSVC)
- target_compile_definitions(zint PRIVATE DLL_EXPORT)
+ if(ZINT_SHARED)
+ target_compile_definitions(zint PRIVATE DLL_EXPORT)
+ endif()
endif()
zint_target_include_directories(PUBLIC