From 00199c7ef5960862ad7b92a479c4bfe6246d3cd2 Mon Sep 17 00:00:00 2001 From: Schaich Date: Mon, 26 Apr 2021 22:47:53 +0900 Subject: [PATCH] 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 --- backend/CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index 7bb3a7dc..d1b4ea9d 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -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})