mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-07 20:17:06 +00: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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user