CMake: Check for visibility once
Change-Id: I5c729f4509eed16409df5eb048afb7f60c5ca57c Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
3552323049
commit
b705021b4e
@ -412,12 +412,13 @@ function(qt_pull_features_into_current_scope)
|
|||||||
else()
|
else()
|
||||||
set(property_prefix "")
|
set(property_prefix "")
|
||||||
endif()
|
endif()
|
||||||
foreach(visibility PUBLIC PRIVATE)
|
foreach(visibility IN ITEMS PUBLIC PRIVATE)
|
||||||
|
if(NOT ${arg_${visibility}_FEATURES})
|
||||||
|
continue()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(value ON)
|
set(value ON)
|
||||||
foreach(state ENABLED DISABLED)
|
foreach(state IN ITEMS ENABLED DISABLED)
|
||||||
if(NOT ${arg_${visibility}_FEATURES})
|
|
||||||
continue()
|
|
||||||
endif()
|
|
||||||
get_target_property(features "${target}" ${property_prefix}QT_${arg_FEATURE_PROPERTY_INFIX}${state}_${visibility}_FEATURES)
|
get_target_property(features "${target}" ${property_prefix}QT_${arg_FEATURE_PROPERTY_INFIX}${state}_${visibility}_FEATURES)
|
||||||
if("${features}" STREQUAL "features-NOTFOUND")
|
if("${features}" STREQUAL "features-NOTFOUND")
|
||||||
continue()
|
continue()
|
||||||
|
Loading…
Reference in New Issue
Block a user