summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2012-09-24 12:01:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-24 18:01:14 +0200
commit44a0e972a0fc6787f1d275a457c2bb0a0d10aff8 (patch)
tree3dbd2d297735416c6ba2e855835becf13f2a3bad /mkspecs
parentfd6a870136ab2fdb3ce8b516abcf8c05d45caba7 (diff)
When trying to run cmake, don't show stderr output.
It looks like the qmake process failed if cmake is not installed. Change-Id: I721796a602d8c572144e9d21be5d62b737698b73 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/ctest_testcase.prf7
1 files changed, 6 insertions, 1 deletions
diff --git a/mkspecs/features/ctest_testcase.prf b/mkspecs/features/ctest_testcase.prf
index 0ae5ba268b..471b73e16b 100644
--- a/mkspecs/features/ctest_testcase.prf
+++ b/mkspecs/features/ctest_testcase.prf
@@ -1,5 +1,10 @@
-CMAKE_VERSION = $$system(cmake --version)
+win32 {
+ CMAKE_VERSION = $$system(cmake --version 2>NUL)
+} else {
+ CMAKE_VERSION = $$system(cmake --version 2>/dev/null)
+}
+
check.commands =
isEmpty(CMAKE_VERSION) {