Skip to content

Commit

Permalink
fixup! cmake: Redefine configuration flags
Browse files Browse the repository at this point in the history
BUGFIX: The `get_target_interface()` must be called on targets only.
  • Loading branch information
hebasto committed Nov 12, 2023
1 parent 6d752ea commit 217e37e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/module/ProcessConfigurations.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ function(get_target_interface var target property)
get_target_property(dependencies ${target} INTERFACE_LINK_LIBRARIES)
if(dependencies)
foreach(dependency IN LISTS dependencies)
get_target_interface(dep_result ${dependency} ${property})
string(STRIP "${result} ${dep_result}" result)
if(TARGET ${dependency})
get_target_interface(dep_result ${dependency} ${property})
string(STRIP "${result} ${dep_result}" result)
endif()
endforeach()
endif()

Expand Down

0 comments on commit 217e37e

Please sign in to comment.