Skip to content

Commit a0112f9

Browse files
committed
fix install with MinGW GCC from command-line
1 parent 4df65ca commit a0112f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ if (Qt6_FOUND AND WIN32)
8484
add_custom_command(
8585
TARGET scantailor
8686
POST_BUILD
87-
COMMAND ${QT_BINDIR}/windeployqt $<TARGET_FILE_DIR:scantailor>
87+
COMMAND ${QT_BINDIR}/windeployqt $<TARGET_FILE:scantailor>
8888
COMMENT "deploy qt files alongside binary (e.g. plugins)"
8989
)
90-
install(CODE "execute_process(COMMAND ${QT_BINDIR}/windeployqt ${CMAKE_INSTALL_PREFIX})")
90+
install(CODE "execute_process(COMMAND \"${QT_BINDIR}/windeployqt\" \"\$\{CMAKE_INSTALL_PREFIX\}\")")
9191
endif()
9292

9393
translation_sources(scantailor ${gui_only_sources} ${gui_only_ui_files})

0 commit comments

Comments
 (0)