Skip to content

Commit

Permalink
* build/FindAPRUtil.cmake: Use target_link_libraries() to reference l…
Browse files Browse the repository at this point in the history
…inked

  libraries instead of INTERFACE_LINK_LIBRARIES target property.

git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1919094 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Jul 10, 2024
1 parent 0094b5a commit 73f26fa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build/FindAPRUtil.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ else(APR_CONTAINS_APRUTIL)
IMPORTED_LOCATION "${APRUTIL_RUNTIME_LIBS}"
IMPORTED_IMPLIB "${APRUTIL_LIBRARIES}")
if(TARGET APR::APR)
set_target_properties(APR::APRUTIL PROPERTIES
INTERFACE_LINK_LIBRARIES APR::APR)
target_link_libraries(APR::APRUTIL
INTERFACE APR::APR)
endif()
endif()

Expand All @@ -176,8 +176,9 @@ else(APR_CONTAINS_APRUTIL)
add_library(APR::APRUTIL_static STATIC IMPORTED)
set_target_properties(APR::APRUTIL_static PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${APRUTIL_INCLUDES}"
INTERFACE_LINK_LIBRARIES "${_apu_extra}"
IMPORTED_LOCATION "${_apu_static}")
target_link_libraries(APR::APRUTIL_static
INTERFACE ${_apu_extra})
endif()

else() # NOT Windows
Expand All @@ -186,9 +187,9 @@ else(APR_CONTAINS_APRUTIL)
add_library(APR::APRUTIL UNKNOWN IMPORTED)
set_target_properties(APR::APRUTIL PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${APRUTIL_INCLUDES}"
INTERFACE_LINK_LIBRARIES "${APRUTIL_EXTRALIBS};${_apu_extra}"
IMPORTED_LOCATION "${_apu_library}")

target_link_libraries(APR::APRUTIL
INTERFACE ${APRUTIL_EXTRALIBS};${_apu_extra})
endif() # NOT Windows
endif(APRUTIL_FOUND)

Expand Down

0 comments on commit 73f26fa

Please sign in to comment.