Making imported targets global, fixing identiation of the enabled_gems.cmake file
This commit is contained in:
@@ -54,4 +54,4 @@ set(ENABLED_GEMS
|
||||
AWSCore
|
||||
AWSClientAuth
|
||||
AWSMetrics
|
||||
)
|
||||
)
|
||||
|
||||
+8
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user