diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-23 16:49:52 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-04-04 15:41:20 +0200 |
commit | 2061cea0f38e1eaae26fca1a04fdf6d9473a47d0 (patch) | |
tree | 6f3c84983decc8b2fd1a44feb0a13a7e0d0041a5 /libexec | |
parent | a42e7839b27c9fc29fc0b37c342c8c489d445219 (diff) |
CMake: Pass -v to ninja when using ctest --build-and-test
So we can see the command line invocations of the built cmake
auto tests.
To achieve that, we create a ninja shell script wrapper, because
ctest --build-and-test does not currently allow specifying custom
build tool options.
Details at
https://gitlab.kitware.com/cmake/cmake/-/issues/22443
Pick-to: 6.2 6.3
Change-Id: I7fb3b7f7f802943a7013c859b2cf39842a34e2e4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/qt-internal-ninja.bat.in | 3 | ||||
-rwxr-xr-x | libexec/qt-internal-ninja.in | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libexec/qt-internal-ninja.bat.in b/libexec/qt-internal-ninja.bat.in new file mode 100644 index 0000000000..98742e1aec --- /dev/null +++ b/libexec/qt-internal-ninja.bat.in @@ -0,0 +1,3 @@ +:: Make sure we don't echo, because CMake uses the output to parse out ninja's version +@echo off +@original_ninja@ @ninja_arguments@ %* diff --git a/libexec/qt-internal-ninja.in b/libexec/qt-internal-ninja.in new file mode 100755 index 0000000000..742a06d597 --- /dev/null +++ b/libexec/qt-internal-ninja.in @@ -0,0 +1,2 @@ +#!/bin/sh +@original_ninja@ @ninja_arguments@ "$@" |