From c30687f519de47279a70c3eca95eec2191eddbb1 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 24 Sep 2014 13:01:02 +0200 Subject: 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 --- mkspecs/features/create_cmake.prf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mkspecs/features/create_cmake.prf') 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.") } -- cgit v1.2.3