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 /configure.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 'configure.cmake')
-rw-r--r-- | configure.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.cmake b/configure.cmake index 52943980a8..0af3479cf2 100644 --- a/configure.cmake +++ b/configure.cmake @@ -130,7 +130,8 @@ int main(int argc, char **argv) qt_config_compile_test("separate_debug_info" LABEL "separate debug information support" - PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/config.tests/separate_debug_info") + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/config.tests/separate_debug_info" +) # signaling_nan qt_config_compile_test(signaling_nan LABEL "Signaling NaN for doubles" @@ -492,6 +493,11 @@ qt_feature("c11" PUBLIC LABEL "C11" CONDITION QT_FEATURE_c99 AND c_std_11 IN_LIST CMAKE_C_COMPILE_FEATURES ) +qt_feature("precompile_header" + LABEL "Using precompiled headers" + CONDITION BUILD_WITH_PCH +) +qt_feature_config("precompile_header" QMAKE_PRIVATE_CONFIG) qt_feature("reduce_exports" PRIVATE LABEL "Reduce amount of exported symbols" CONDITION NOT WIN32 AND CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY |