File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -543,9 +543,16 @@ if(WIN32)
543543 ${API_VENDORED_KISSFFT_DLL}
544544 $<TARGET_FILE_DIR :${APP_NAME} >)
545545
546- # Run winddeployqt if it can be found, to ensure installed dependencies
546+ # Locate windeployqt: prefer the Qt we configured against (QT_INSTALL_PREFIX),
547+ # else fall back to PATH — same resolution as macdeployqt above.
548+ if (QT_INSTALL_PREFIX AND EXISTS "${QT_INSTALL_PREFIX} /bin/windeployqt.exe" )
549+ set (WINDEPLOYQT_BIN "${QT_INSTALL_PREFIX} /bin/windeployqt" )
550+ else ()
551+ set (WINDEPLOYQT_BIN "windeployqt" )
552+ endif ()
553+ message (STATUS "windeployqt: ${WINDEPLOYQT_BIN} " )
547554 add_custom_command (TARGET ${APP_NAME} POST_BUILD
548- COMMAND ${QT_INSTALL_PREFIX} /bin/windeployqt $<TARGET_FILE :${APP_NAME} >)
555+ COMMAND ${WINDEPLOYQT_BIN} $<TARGET_FILE :${APP_NAME} >)
549556endif () # Win32
550557
551558# Make convenient source groups in the IDE
You can’t perform that action at this time.
0 commit comments