mirror of
https://git.code.sf.net/p/zint/code
synced 2024-09-19 15:28:56 -04: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
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue