From c09df7b57c1e4b25b5e20c63d2bab63d0d12dea0 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Tue, 25 Aug 2020 08:17:23 +0200 Subject: CMake: Implement configure -reduce-exports This option maps to FEATURE_reduce_exports. The feature is on by default, except for MSVC. The reduce_exports configure test is not used in the CMake build. The _VISIBILITY_PRESET and VISIBILITY_INLINES_HIDDEN target properties are now explicitly initialized in the qt_set_common_target_properties function, because we don't have access to the feature in QtSetup.cmake where the CMAKE__VISIBILITY_PRESET variables were set before. Task-number: QTBUG-85373 Change-Id: I378453f0e0665731970016170302871e20ceb4e2 Reviewed-by: Qt CI Bot Reviewed-by: Alexandru Croitor --- cmake/configure-cmake-mapping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/configure-cmake-mapping.md') diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md index b0fa969a75..95527273fd 100644 --- a/cmake/configure-cmake-mapping.md +++ b/cmake/configure-cmake-mapping.md @@ -61,7 +61,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349. | -R | -DQT_EXTRA_RPATHS=path1;path2 | | | -rpath | negative CMAKE_SKIP_BUILD_RPATH | | | | negative CMAKE_SKIP_INSTALL_RPATH | | -| -reduce-exports | | | +| -reduce-exports | -DFEATURE_reduce_exports=ON | | | -reduce-relocations | -DFEATURE_reduce_relocations=ON | | | -plugin-manifests | | | | -static-runtime | -DFEATURE_static_runtime=ON | | -- cgit v1.2.3