From 422627b83e7270da0a3961aa64acb541c253e799 Mon Sep 17 00:00:00 2001 From: Citlali del Rey Date: Tue, 21 May 2024 17:24:47 -0700 Subject: [PATCH] build: make -deployqt search more robust --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 375f6a5a..8be3d678 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -299,12 +299,13 @@ if(APPLE OR WIN32 OR HAIKU) # Find deployment helpers. get_filename_component(QT_BIN_DIR "${QT_QMAKE_EXECUTABLE}" DIRECTORY) if(APPLE) - find_program(MACDEPLOYQT_EXECUTABLE macdeployqt HINTS "${QT_BIN_DIR}") + find_program(MACDEPLOYQT_EXECUTABLE + "macdeployqt${QT_VERSION_MAJOR}" HINTS "${QT_BIN_DIR}") endif() if(WIN32) find_program( WINDEPLOYQT_EXECUTABLE - windeployqt.exe + "windeployqt${QT_VERSION_MAJOR}.exe" HINTS "${QT_BIN_DIR}" ) endif()