From 3a52ae5e22a39a63aa140f0d7e969d7bf16c11a4 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 16 Sep 2021 01:05:41 +0200 Subject: [PATCH] Prevent attempt to strip import lib for static plugin --- cmake/modules/LibraryTarget.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/LibraryTarget.cmake b/cmake/modules/LibraryTarget.cmake index b1af925..303811a 100644 --- a/cmake/modules/LibraryTarget.cmake +++ b/cmake/modules/LibraryTarget.cmake @@ -582,7 +582,7 @@ if (NOT META_NO_INSTALL_TARGETS AND ENABLE_INSTALL_TARGETS) else () message(STATUS "Using strip binary under \"${STRIP_BINARY_PATH}\".") endif () - if (NOT META_HEADER_ONLY_LIB) + if (NOT META_HEADER_ONLY_LIB AND NOT META_IS_PLUGIN) if (CMAKE_GENERATOR STREQUAL "Ninja") set(DESTDIR "\$\$\{DESTDIR\}\$\$\{DESTDIR:+/\}") else ()