Skip to content

Commit

Permalink
Merge r1917109 from apr/trunk:
Browse files Browse the repository at this point in the history
* CMakeLists.txt: Do not add ${APR_SYSTEM_LIBS} and others as TARGET_LINK_LIBRARIES
  for test programs: CMake already adds transitive dependencies.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.7.x@1920397 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 2, 2024
1 parent db42f17 commit 7a48a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ IF(APR_BUILD_TESTAPR)
ENDFOREACH()

ADD_EXECUTABLE(testall ${APR_TEST_SOURCES})
TARGET_LINK_LIBRARIES(testall ${whichapr} ${apr_ldap_libraries} ${XMLLIB_LIBRARIES} ${LDAP_LIBRARIES})
TARGET_LINK_LIBRARIES(testall ${whichapr})
TARGET_COMPILE_DEFINITIONS(testall PRIVATE "BINPATH=$<TARGET_FILE_DIR:testall>")
IF(apiflag)
SET_TARGET_PROPERTIES(testall PROPERTIES COMPILE_FLAGS ${apiflag})
Expand Down

0 comments on commit 7a48a7f

Please sign in to comment.