summaryrefslogtreecommitdiffstats
path: root/cmake/QtSetup.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-03-02 18:06:46 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-03-09 23:08:57 +0100
commit95e1469eb8be6c7dd98d2bdb3bae4800e75cd2b7 (patch)
tree529862d03edce64c2f76e78cf608ea4795467ebf /cmake/QtSetup.cmake
parenta64f4b405222527a72fb087226801c52ddf54ef0 (diff)
CMake: Port most of the configure summary support
Teaches configurejson2cmake about summaries / reports, so things like enabled features, configure sections, notes, etc. Add relevant CMake API for adding summary sections and entries, as well as configure reports. The commands record the passed data, and the data is later evaluated when the summary needs to be printed. This is needed, to ensure that all features are evaluated by the time the summary is printed. Some report and summary entries are not generated if they mention a feature that is explicitly exclduded by configurejson2cmake's feature mapping dictionary. This is to prevent CMake from failing at configure time when trying to evaluate an unknown feature. We should re-enable these in the future. A few custom report types are skipped by configurejson2cmake (like values of qmake CONFIG or buildParts). These will have to be addressed a case-by-case basis if still needed. Change-Id: I95d74ce34734d347681905f15a781f64b5bd5edc Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtSetup.cmake')
-rw-r--r--cmake/QtSetup.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake
index 4b5e632847..e8f1caf2fa 100644
--- a/cmake/QtSetup.cmake
+++ b/cmake/QtSetup.cmake
@@ -148,6 +148,7 @@ endif()
include(QtBuild)
## Qt Feature support:
+include(QtBuildInformation)
include(QtFeature)
## Compiler optimization flags: