Skip to content

Commit

Permalink
build(cxx): cmake configure on cmake 3.18 (#3367)
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd authored Jul 27, 2023
1 parent f05067b commit ba61354
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/sdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ function(get_lib_path X RET)
endif()
else()
# if target has no location, handle it before call this function
get_target_property(RET_V ${X} LOCATION)
get_target_property(type ${X} TYPE)
if (NOT ${type} STREQUAL "INTERFACE_LIBRARY")
get_target_property(RET_V ${X} LOCATION)
endif()
# message(STATUS "get ${X} path: ${RET_V}")
endif()
if("${RET_V}" STREQUAL "RET_V-NOTFOUND")
Expand Down Expand Up @@ -343,10 +346,6 @@ list(REMOVE_DUPLICATES ABSL_LLVM_TGTS)

# get absl llvm libs path
foreach(X IN LISTS ABSL_LLVM_TGTS)
get_target_property(type ${X} TYPE)
if (${type} STREQUAL "INTERFACE_LIBRARY")
continue()
endif()
get_lib_path(${X} Y)
# message(STATUS "get ${X} path: ${Y}")
list(APPEND CXXSDK_THIRDPARTY_LIBS ${Y})
Expand Down

0 comments on commit ba61354

Please sign in to comment.