Fixed the discovery of the dependencies of gem variant aliases which (#2013)

alias INTERFACE LIBRARY targets.

This was causing the dependent Atom_AtomBridge sub gems from not being
found when generating the cmake_dependencies.*.setreg file containing
the list of gem modules to load

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
main
lumberyard-employee-dm 4 years ago committed by GitHub
parent d7c8c0192f
commit 097dc25424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,7 +47,7 @@ set(ENABLED_GEMS
LmbrCentral
LyShine
HttpRequestor
Atom_AtomBridge
Atom
AWSCore
AWSClientAuth
AWSMetrics

@ -160,12 +160,6 @@ function(ly_delayed_generate_settings_registry)
get_property(has_manually_added_dependencies TARGET ${gem_target} PROPERTY MANUALLY_ADDED_DEPENDENCIES SET)
get_target_property(target_type ${gem_target} TYPE)
if (target_type STREQUAL "INTERFACE_LIBRARY" AND has_manually_added_dependencies)
# don't use interface libraries here, we only want ones which produce actual binaries unless the target
# is empty. We have still already recursed into their dependencies - they'll show up later.
# When the target has no dependencies however we want to add the gem root path to the generated setreg
continue()
endif()
ly_get_gem_module_root(gem_module_root ${gem_target})

Loading…
Cancel
Save