cmake: restructure code so FeatureSummary gets to print its dependencies report
The FeatureSummary
module is supposed to print a report of the dependencies,
but currently cmake errors out before FeatureSummary
gets to print anything.
Sometimes some warnings
[cmake] CMake Warning at CMakeLists.txt:132 (find_package):
[cmake] By not providing "FindKF6WindowSystem.cmake" in CMAKE_MODULE_PATH this
[cmake] project has asked CMake to find a package configuration file provided by
[cmake] "KF6WindowSystem", but CMake did not find one.
...
are printed after the FeatureSummary report.