Skip to content

Commit

Permalink
build(cpp sdk): do not extract path for interface target
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Jun 25, 2023
1 parent 4b88184 commit 7eef408
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ list(REMOVE_ITEM ABSL_LLVM_LIBS "")

# Find path of libraries in ${ABSL_LLVM_LIBS}
foreach(X IN LISTS ABSL_LLVM_LIBS)
get_target_property(type ${X} TYPE)
if (${type} STREQUAL "INTERFACE_LIBRARY")
continue()
endif()
get_property(_loc TARGET ${X} PROPERTY LOCATION)
list(APPEND ABSL_LLVM_PATH ${_loc})
endforeach()
Expand Down

0 comments on commit 7eef408

Please sign in to comment.