Making imported targets global, fixing identiation of the enabled_gems.cmake file

This commit is contained in:
pappeste
2021-05-27 20:12:48 -07:00
parent 425cb3e2fa
commit 69e79867be
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -54,4 +54,4 @@ set(ENABLED_GEMS
AWSCore
AWSClientAuth
AWSMetrics
)
)
+8 -4
View File
@@ -63,13 +63,17 @@ function(ly_create_alias)
"This could be a copy-paste error, where some part of the ly_create_alias call was changed but the other")
endif()
add_library(${ly_create_alias_NAME} INTERFACE IMPORTED)
add_library(${ly_create_alias_NAME} INTERFACE IMPORTED GLOBAL)
set_target_properties(${ly_create_alias_NAME} PROPERTIES GEM_MODULE TRUE)
foreach(target_name ${ly_create_alias_TARGETS})
ly_de_alias_target(${target_name} de_aliased_target_name)
if(NOT de_aliased_target_name)
message(FATAL_ERROR "Target not found in ly_create_alias call: ${target_name} - check your spelling of the target name")
if(TARGET ${target_name})
ly_de_alias_target(${target_name} de_aliased_target_name)
if(NOT de_aliased_target_name)
message(FATAL_ERROR "Target not found in ly_create_alias call: ${target_name} - check your spelling of the target name")
endif()
else()
set(de_aliased_target_name ${target_name})
endif()
list(APPEND final_targets ${de_aliased_target_name})
endforeach()