From 4de70ce95278b29c3e811f1496505459f257adc4 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 17 Jun 2019 09:00:38 +0200 Subject: [PATCH] Avoid hardcoding the underlying build tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 3.15, not only --build can call the low-level build tool, --install can also be used to run the installation. There's also an environment variable that can be used to control the backend at cmake time, but that may only be useful later. Change-Id: I8c1ee48f946e110af3e824cf8980bbacbb94db99 Reviewed-by: Jędrzej Nowacki Reviewed-by: Qt CMake Build Bot --- coin/module_config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/coin/module_config.yaml b/coin/module_config.yaml index 4de47d1e40..90effa8dbd 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -171,11 +171,17 @@ build_instructions: maxTimeInSeconds: 60 userMessageOnFailure: Could not print the file cmake config file. This should not be possible. - type: ExecuteCommand - command: "{{.Env.ENV_PREFIX}} ninja install" + command: "{{.Env.ENV_PREFIX}} cmake --build ." maxTimeInSeconds: 6000 maxTimeBetweenOutput: 120 userMessageOnFailure: > Failed to build sources. In the current state bug can be everywhere. Contact Liang first. + - type: ExecuteCommand + command: "{{.Env.ENV_PREFIX}} cmake --install ." + maxTimeInSeconds: 6000 + maxTimeBetweenOutput: 120 + userMessageOnFailure: > + Failed to install sources. In the current state bug can be everywhere. Contact Liang first. - type: SignPackage enable_if: condition: property