Use Cmake provided variable for windeployqt file

Instead of path to a speicific file that might not exists for the currently installed version
This commit is contained in:
Emma Broman
2024-08-19 15:41:50 +02:00
parent 3eaa3cb593
commit 351ee0f82b

View File

@@ -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 \"$<TARGET_FILE:OpenSpace>\"
COMMAND "${WINDEPLOYQT_EXECUTABLE}" --verbose 0 --no-compiler-runtime --no-translations \"$<TARGET_FILE:OpenSpace>\"
COMMENT "Deploying Qt libraries"
)
endif ()