Fix erroneous missing-cmake-tests errors
After commit 9c7ebd191b
, qmake would
complain about missing cmake tests even for internal modules that have
no application side C++ linkage that needs testing.
Change-Id: I23b23c81dbe6be2b6da5672cbd7b8f8454ec2f66
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
697910e5fb
commit
2dddc1c9f4
@ -367,7 +367,7 @@ cmake_qt5_module_files.path = $$[QT_INSTALL_LIBS]/cmake/Qt5$${CMAKE_MODULE_NAME}
|
||||
# Other modules should either create proper tests in tests/auto/cmake or, as
|
||||
# a temporary measure, disable the generation of cmake files
|
||||
# with 'CONFIG -= create_cmake'
|
||||
!equals(CMAKE_MODULE_TESTS, -) {
|
||||
!internal_module:!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. Either create tests in tests/auto/cmake," \
|
||||
|
Loading…
Reference in New Issue
Block a user