The zint library always is shared

The SHARED attribute is forced via the add_library, so the default
value of cmake is ignored. Also, this option should obviously not
be set for the `zint-static` library
This commit is contained in:
Schaich 2021-04-26 22:47:53 +09:00 committed by Schaich
parent 2221cb1e83
commit 00199c7ef5

View File

@ -55,10 +55,7 @@ if(NOT MSVC)
endif()
if(MSVC)
# "BUILD_SHARED_LIBS" is a CMake defined variable, see documentation.
if(BUILD_SHARED_LIBS)
zint_target_compile_definitions(zint PRIVATE DLL_EXPORT)
endif()
target_compile_definitions(zint PRIVATE DLL_EXPORT)
endif()
install(TARGETS zint ${INSTALL_TARGETS_DEFAULT_ARGS})