From 12e99a9d4ca6cb1ff8ee94e74e2889376574e4d2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 16 Jun 2022 15:42:27 +0200 Subject: [PATCH] build: Output plugin files to correct path on build on Windows as well --- cmake/build_helpers.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index c26019738..bc863919a 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -153,6 +153,9 @@ macro(createPackage) if (TARGET ${plugin}) get_target_property(IS_RUST_PROJECT ${plugin} RUST_PROJECT) + set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) + set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) + if (IS_RUST_PROJECT) set_target_properties(${plugin} PROPERTIES CARGO_BUILD_TARGET_DIR ${CMAKE_BINARY_DIR}/plugins) @@ -160,7 +163,6 @@ macro(createPackage) install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}") else () - set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) if (WIN32) install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) elseif (APPLE)