summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/create_cmake.prf
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2014-09-24 13:01:02 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2014-09-26 23:31:33 +0200
commitc30687f519de47279a70c3eca95eec2191eddbb1 (patch)
treebd6b06656414946dd1d13449d7c1dc4ee3e2e68d /mkspecs/features/create_cmake.prf
parent26875f60801b4d03a051f709ecfc462147093abe (diff)
create_cmake: Make the warning actually useful.
Giving instructions, rather than forcing one to grep qtbase for the error message is always a good thing. Change-Id: I0f5abed341368cdf817dc0110c2c250b377a30de Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'mkspecs/features/create_cmake.prf')
-rw-r--r--mkspecs/features/create_cmake.prf4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/features/create_cmake.prf b/mkspecs/features/create_cmake.prf
index 2533b7b8d6..f9747bb329 100644
--- a/mkspecs/features/create_cmake.prf
+++ b/mkspecs/features/create_cmake.prf
@@ -300,5 +300,7 @@ cmake_qt5_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5$${CMAKE_MODULE_NAME}
# with 'CONFIG -= create_cmake'
!equals(CMAKE_MODULE_TESTS, -) {
isEmpty(CMAKE_MODULE_TESTS): CMAKE_MODULE_TESTS = $$MODULE_BASE_INDIR/tests/auto/cmake
- !exists($$CMAKE_MODULE_TESTS): error("Missing CMake tests.")
+ !exists($$CMAKE_MODULE_TESTS): \
+ error("Missing CMake tests. Either create tests in tests/auto/cmake," \
+ "or disable cmake config file creation with CONFIG-=create_cmake.")
}