diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-04-03 16:33:24 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-04-06 11:00:53 +0200 |
commit | 34c7344e2a5999f68d08f13a23f84028253d45c2 (patch) | |
tree | 8059817da60d17381139ef11e91b9639c4d046ca /util/cmake | |
parent | d8b49e6b51007d6f0a9faec82a66b95dc7ccf541 (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-x | util/cmake/configurejson2cmake.py | 4 |
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! |