Skip to content

Commit

Permalink
Handle aliased target in love_group_projects CMake function.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Jan 2, 2025
1 parent a6db666 commit f4f950a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extra/cmake/LoveMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 (NOT "${ORIGINAL_TARGET}" STREQUAL "")
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}")
Expand Down

0 comments on commit f4f950a

Please sign in to comment.