From 3162c246000b1d54c237ad9e604689e3d27b9063 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 29 Aug 2020 01:11:22 +0200 Subject: Add timeout for qmlplugindump calls qmlplugindump sometimes hangs forever and thus blocks a build. Setting an (arguably arbitrary) timeout works around that. --- modules/ECMFindQMLModule.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ECMFindQMLModule.cmake.in') diff --git a/modules/ECMFindQMLModule.cmake.in b/modules/ECMFindQMLModule.cmake.in index ed147309..6f01c779 100644 --- a/modules/ECMFindQMLModule.cmake.in +++ b/modules/ECMFindQMLModule.cmake.in @@ -14,7 +14,7 @@ if(NOT QMLPLUGINDUMP_PROGRAM) message(WARNING "Could not find qmlplugindump. It is necessary to look up qml module dependencies.") endif() -execute_process(COMMAND "${QMLPLUGINDUMP_PROGRAM}" "@MODULE_NAME@" "@VERSION@" ERROR_VARIABLE ERRORS_OUTPUT OUTPUT_VARIABLE DISREGARD_VARIABLE RESULT_VARIABLE ExitCode) +execute_process(COMMAND "${QMLPLUGINDUMP_PROGRAM}" "@MODULE_NAME@" "@VERSION@" ERROR_VARIABLE ERRORS_OUTPUT OUTPUT_VARIABLE DISREGARD_VARIABLE RESULT_VARIABLE ExitCode TIMEOUT 30) if(ExitCode EQUAL 0) set(@GENMODULE@_FOUND TRUE) -- cgit v1.2.1