diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 8fda5791d..c26019738 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -151,9 +151,6 @@ macro(createPackage) foreach (plugin IN LISTS PLUGINS) add_subdirectory("plugins/${plugin}") if (TARGET ${plugin}) - set_target_properties(${plugin} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins) - set_target_properties(${plugin} PROPERTIES CARGO_BUILD_TARGET_DIR ${CMAKE_BINARY_DIR}/plugins) - get_target_property(IS_RUST_PROJECT ${plugin} RUST_PROJECT) if (IS_RUST_PROJECT) @@ -163,7 +160,7 @@ macro(createPackage) install(FILES "${PLUGIN_LOCATION}/../${plugin}.hexplug" DESTINATION "${PLUGINS_INSTALL_LOCATION}") else () - 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 (WIN32) install(TARGETS ${plugin} RUNTIME DESTINATION ${PLUGINS_INSTALL_LOCATION}) elseif (APPLE)