Skip to content

Commit

Permalink
build: make -deployqt search more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
nullobsi committed May 22, 2024
1 parent c3604a9 commit 422627b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 422627b

Please sign in to comment.