From 3d47869bcd208e426e1fe3a48a90f60edcb7f648 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 26 Jul 2019 22:01:00 +0200 Subject: [PATCH] Use META_PLUGIN_CATEGORY within build directory The *.so file might not be found when not in the right subdirectory. --- cmake/modules/LibraryTarget.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/LibraryTarget.cmake b/cmake/modules/LibraryTarget.cmake index e6e5237..732cc43 100644 --- a/cmake/modules/LibraryTarget.cmake +++ b/cmake/modules/LibraryTarget.cmake @@ -155,6 +155,9 @@ else () ${STATIC_LINKAGE} AUTOGEN_TARGET_DEPENDS "${AUTOGEN_DEPS}") + if (META_PLUGIN_CATEGORY) + set_target_properties(${META_TARGET_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${META_PLUGIN_CATEGORY}") + endif () endif () # populate META_PUBLIC_LIB_DEPENDS