Fix Windows static build

This commit is contained in:
Todor Prokopov 2022-12-19 18:34:43 +02:00
parent 268fdd7fc2
commit 2d2b221306

View File

@ -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