mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
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:
parent
2221cb1e83
commit
00199c7ef5
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user