mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-23 15:11:01 -06:00
The minimum CMake version for Qt6 is 3.16, so all the calls to cmake_minimum_required() are updated here to enforce that minimum. This will avoid any CMake version-related warnings from Qt. Avoid hard-coding Qt5 where the tests could now be using Qt5 or Qt6. Fixes: #22188
19 lines
496 B
CMake
19 lines
496 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(NoQt)
|
|
if (DEFINED with_qt_version)
|
|
set(RunCMake_TEST_OPTIONS
|
|
-Dwith_qt_version=${with_qt_version}
|
|
"-DQt${with_qt_version}_DIR:PATH=${Qt${with_qt_version}_DIR}"
|
|
"-DCMAKE_PREFIX_PATH:STRING=${CMAKE_PREFIX_PATH}"
|
|
)
|
|
|
|
run_cmake(QtInFunction)
|
|
run_cmake(QtInFunctionNested)
|
|
run_cmake(QtInFunctionProperty)
|
|
|
|
run_cmake(CMP0111-imported-target-full)
|
|
run_cmake(CMP0111-imported-target-libname)
|
|
run_cmake(CMP0111-imported-target-implib-only)
|
|
endif ()
|