vcpkg/ports/zint/0004-windows-static-build.patch
2022-12-19 14:31:53 -08:00

16 lines
404 B
Diff

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