Handle aliased target in love_group_projects CMake function.

This commit is contained in:
Miku AuahDark
2025-01-02 14:08:21 +08:00
parent 4029df5a13
commit 89f75f51fb
+6
View File
@@ -16,6 +16,12 @@ function(love_group_projects)
foreach(TARGET_LIB ${TARGET_LIBS})
# Is this a target? (Could also be a .lib file)
if (TARGET ${TARGET_LIB})
# Resolve aliased target
get_target_property(ORIGINAL_TARGET ${TARGET_LIB} ALIASED_TARGET)
if (ORIGINAL_TARGET)
set(TARGET_LIB ${ORIGINAL_TARGET})
endif()
# Do we want to nest per-project?
if (LOVE_GROUP_NESTED)
set_target_properties(${TARGET_LIB} PROPERTIES FOLDER "${LOVE_GROUP_NAME}/${TARGET_NAME}")