summaryrefslogtreecommitdiffstats
path: root/util/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-04-03 16:33:24 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-04-06 11:00:53 +0200
commit34c7344e2a5999f68d08f13a23f84028253d45c2 (patch)
tree8059817da60d17381139ef11e91b9639c4d046ca /util/cmake
parentd8b49e6b51007d6f0a9faec82a66b95dc7ccf541 (diff)
CMake: configurejson2cmake: Port precompile_header feature
We don't need the test, we can just check the value of BUILD_WITH_PCH to know whether the feature is enabled. Regenerate configure.cmake files. Change-Id: I5691a22af2913bc398f99825e0c41cf2daf5a587 Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake')
-rwxr-xr-xutil/cmake/configurejson2cmake.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 11b216dc37..a5cd9ff022 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -865,7 +865,9 @@ def get_feature_mapping():
"enable": "TEST_posix_iconv AND TEST_iconv_needlib",
"disable": "NOT TEST_posix_iconv OR NOT TEST_iconv_needlib",
},
- "precompile_header": None,
+ "precompile_header": {
+ "condition": "BUILD_WITH_PCH"
+ },
"profile": None,
"qmakeargs": None,
"qpa_default_platform": None, # Not a bool!