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>
bb10
Robin Burchell 2014-09-24 13:01:02 +02:00
parent 26875f6080
commit c30687f519
1 changed files with 3 additions and 1 deletions

View File

@ -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.")
}