utils: Fix windeployqt call in cmake deploy step.

Change-Id: I295704796cf4dab32010844369b3a5492bf20e2a
This commit is contained in:
Dominik Riebeling 2022-03-12 23:08:47 +01:00
parent 403cb96f3a
commit 96f5b07d39

View file

@ -170,7 +170,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:${deploy_TARGET}> ${deploydir}
COMMAND ${WINDEPLOYQT_EXECUTABLE}
$<IF:$<CONFIG:Debug>,--debug,--release> # on MinGW, release is mistaken as debug.
${deploydir}/$<TARGET_FILE:${deploy_TARGET}>
$<TARGET_FILE:${deploy_TARGET}>
DEPENDS ${deploy_TARGET}
)
else()