From 351ee0f82be7a5b659fd9e5241b91c31325c4e64 Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Mon, 19 Aug 2024 15:41:50 +0200 Subject: [PATCH] Use Cmake provided variable for windeployqt file Instead of path to a speicific file that might not exists for the currently installed version --- apps/OpenSpace/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/OpenSpace/CMakeLists.txt b/apps/OpenSpace/CMakeLists.txt index 8e41455eca..729f4bf4fe 100644 --- a/apps/OpenSpace/CMakeLists.txt +++ b/apps/OpenSpace/CMakeLists.txt @@ -149,7 +149,7 @@ if (WIN32) get_filename_component(_qt_bin_dir "${_qmake_executable}" DIRECTORY) add_custom_command( TARGET OpenSpace POST_BUILD - COMMAND "${CMAKE_COMMAND}" -E env PATH="${_qt_bin_dir}" "${_qt_bin_dir}/windeployqt6.exe" --verbose 0 --no-compiler-runtime --no-translations \"$\" + COMMAND "${WINDEPLOYQT_EXECUTABLE}" --verbose 0 --no-compiler-runtime --no-translations \"$\" COMMENT "Deploying Qt libraries" ) endif ()