Fold set_property call for Android executables

Small QoL improvement. The folded set_target_properties call looks
nicer.

Pick-to: 6.5 6.8 6.9
Change-Id: Id60e8c346672733a805e09420c754a24bcae82dc
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2025-04-22 13:59:34 +02:00
parent 5c30ae2c9f
commit 44a43b0aba

View File

@ -674,12 +674,14 @@ function(_qt_internal_create_executable target)
# visibility=hidden. Not having this flag set will cause the # visibility=hidden. Not having this flag set will cause the
# executable to have main() hidden and can then no longer be loaded # executable to have main() hidden and can then no longer be loaded
# through dlopen() # through dlopen()
set_property(TARGET "${target}" PROPERTY C_VISIBILITY_PRESET default) set_target_properties("${target}" PROPERTIES
set_property(TARGET "${target}" PROPERTY CXX_VISIBILITY_PRESET default) C_VISIBILITY_PRESET default
set_property(TARGET "${target}" PROPERTY OBJC_VISIBILITY_PRESET default) CXX_VISIBILITY_PRESET default
set_property(TARGET "${target}" PROPERTY OBJCXX_VISIBILITY_PRESET default) OBJC_VISIBILITY_PRESET default
set_property(TARGET "${target}" OBJCXX_VISIBILITY_PRESET default
PROPERTY _qt_android_apply_arch_suffix_called_from_qt_impl TRUE) _qt_android_apply_arch_suffix_called_from_qt_impl TRUE
)
qt6_android_apply_arch_suffix("${target}") qt6_android_apply_arch_suffix("${target}")
set_property(TARGET "${target}" PROPERTY _qt_is_android_executable TRUE) set_property(TARGET "${target}" PROPERTY _qt_is_android_executable TRUE)
else() else()