mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
[cmake] fail cpack/install if *deployqt tool returns error
This commit is contained in:
@@ -149,7 +149,10 @@ function(vcmi_deploy_qt deployQtToolName deployQtOptions)
|
|||||||
find_program(TOOL_DEPLOYQT NAMES ${deployQtToolName} PATHS "${qtBinDir}")
|
find_program(TOOL_DEPLOYQT NAMES ${deployQtToolName} PATHS "${qtBinDir}")
|
||||||
if(TOOL_DEPLOYQT)
|
if(TOOL_DEPLOYQT)
|
||||||
install(CODE "
|
install(CODE "
|
||||||
execute_process(COMMAND \"${TOOL_DEPLOYQT}\" ${deployQtOptions} -verbose=2)
|
execute_process(
|
||||||
|
COMMAND \"${TOOL_DEPLOYQT}\" ${deployQtOptions} -verbose=2
|
||||||
|
COMMAND_ERROR_IS_FATAL ANY
|
||||||
|
)
|
||||||
")
|
")
|
||||||
else()
|
else()
|
||||||
message(WARNING "${deployQtToolName} not found, running cpack would result in broken package")
|
message(WARNING "${deployQtToolName} not found, running cpack would result in broken package")
|
||||||
|
Reference in New Issue
Block a user