@ -47,6 +47,10 @@ function(ly_create_alias)
if ( NOT TARGET ${ ly_create_alias_NAME } )
add_library ( ${ ly_create_alias_NAME } ALIAS ${ de_aliased_target_name } )
endif ( )
# S t o r e o f f t h e a r g u m e n t s n e e d e d u s e d l y _ c r e a t e _ a l i a s i n t o a D I R E C T O R Y p r o p e r t y
# T h i s w i l l b e u s e d t o r e - c r e a t e t h e c a l l s i n t h e g e n e r a t e d C M a k e L i s t s . t x t i n t h e I N S T A L L s t e p
string ( REPLACE ";" " " create_alias_args "${ly_create_alias_NAME},${ly_create_alias_NAMESPACE},${ly_create_alias_TARGETS}" )
set_property ( DIRECTORY APPEND PROPERTY LY_CREATE_ALIAS_ARGUMENTS "${ly_create_alias_NAME},${ly_create_alias_NAMESPACE},${ly_create_alias_TARGETS}" )
return ( )
endif ( )
@ -75,6 +79,13 @@ function(ly_create_alias)
# n o w a d d t h e f i n a l a l i a s :
add_library ( ${ ly_create_alias_NAMESPACE } :: ${ ly_create_alias_NAME } ALIAS ${ ly_create_alias_NAME } )
# S t o r e o f f t h e a r g u m e n t s n e e d e d u s e d l y _ c r e a t e _ a l i a s i n t o a D I R E C T O R Y p r o p e r t y
# T h i s w i l l b e u s e d t o r e - c r e a t e t h e c a l l s i n t h e g e n e r a t e d C M a k e L i s t s . t x t i n t h e I N S T A L L s t e p
# R e p l a c e t h e C M a k e l i s t s e p a r a t o r w i t h a s p a c e t o r e p l i c a t e t h e s p a c e s e p a r a t e d T A R G E T S a r g u m e n t s
string ( REPLACE ";" " " create_alias_args "${ly_create_alias_NAME},${ly_create_alias_NAMESPACE},${ly_create_alias_TARGETS}" )
set_property ( DIRECTORY APPEND PROPERTY LY_CREATE_ALIAS_ARGUMENTS "${create_alias_args}" )
endfunction ( )
# l y _ e n a b l e _ g e m s
@ -143,7 +154,7 @@ endfunction()
function ( ly_enable_gems_delayed )
get_property ( ly_delayed_enable_gems GLOBAL PROPERTY LY_DELAYED_ENABLE_GEMS )
foreach ( project_target_variant ${ ly_delayed_enable_gems } )
# w e e x p e c t a c o l o n s e p e r a t e d l i s t o f
# w e e x p e c t a c o l o n s e p a r a t e d l i s t o f
# P R O J E C T _ N A M E , t a r g e t _ n a m e , v a r i a n t _ n a m e
string ( REPLACE "," ";" project_target_variant_list "${project_target_variant}" )
list ( LENGTH project_target_variant_list project_target_variant_length )
@ -152,7 +163,7 @@ function(ly_enable_gems_delayed)
endif ( )
if ( NOT project_target_variant_length EQUAL 3 )
message ( FATAL_ERROR "Invalid specifica i ton of gems, expected 'project','target','variant' and got ${project_target_variant}")
message ( FATAL_ERROR "Invalid specifica ti on of gems, expected 'project','target','variant' and got ${project_target_variant}")
endif ( )
list ( POP_BACK project_target_variant_list variant )