From 43382ec7a750bac6be125ecedd2bdbb23afd2cba Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 23 Jul 2019 18:48:39 +0200 Subject: [PATCH] Trying again to fix windows build --- declarativeplugin/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/declarativeplugin/CMakeLists.txt b/declarativeplugin/CMakeLists.txt index 570a6ed68..9a6eb0eaf 100644 --- a/declarativeplugin/CMakeLists.txt +++ b/declarativeplugin/CMakeLists.txt @@ -22,7 +22,8 @@ install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect) # So qml apps using this plugin can be run from build/bin directory add_custom_target(copy_to_build_dir_bin) -add_custom_command(TARGET copy_to_build_dir_bin POST_BUILD +file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/org/kde/kdeconnect) +add_custom_command(TARGET copy_to_build_dir_bin COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${CMAKE_BINARY_DIR}/bin/org/kde/kdeconnect/) add_dependencies(kdeconnectdeclarativeplugin copy_to_build_dir_bin)