Don't include standalone tests config file if none exists
Some repos like qtimageformats don't generate a config file for
standalone tests because the repo creates no modules.
Amends de3a806def
Change-Id: Id42338804605a883f975feb5dd81eda5acc6e687
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
edcf5d0144
commit
e7f188b2d2
@ -171,7 +171,7 @@ macro(qt_build_tests)
|
||||
qt_path_join(_qt_build_tests_install_prefix
|
||||
${CMAKE_INSTALL_PREFIX} ${_qt_build_tests_install_prefix})
|
||||
endif()
|
||||
include("${_qt_build_tests_install_prefix}/${CMAKE_PROJECT_NAME}TestsConfig.cmake")
|
||||
include("${_qt_build_tests_install_prefix}/${CMAKE_PROJECT_NAME}TestsConfig.cmake" OPTIONAL)
|
||||
|
||||
# Of course we always need the test module as well.
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Test)
|
||||
|
Loading…
Reference in New Issue
Block a user