From 2d2b221306a94e15fc809a619a5b106e8c0b716a Mon Sep 17 00:00:00 2001 From: Todor Prokopov Date: Mon, 19 Dec 2022 18:34:43 +0200 Subject: [PATCH] Fix Windows static build --- backend/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index d779033f..133abefd 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