Re: svn commit: r1924334 - /apr/apr-util/branches/1.7.x/CMakeLists.txt
"Graham Leggett via dev" <[email protected]> Wed, 12 Mar 2025 16:01:17 +0000
| Newsgroups | gmane.comp.apache.apr.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12 Mar 2025, at 15:37, Ivan Zhakov via dev <[email protected]> wrote: > ADD_EXECUTABLE(testall ${APR_TEST_SOURCES}) >> - TARGET_LINK_LIBRARIES(testall ${whichapr}) >> + TARGET_LINK_LIBRARIES(testall ${whichapr} ${LDAP_LIBRARIES}) >> TARGET_COMPILE_DEFINITIONS(testall PRIVATE "BINPATH=$<TARGET_FILE_DIR:testall>") >> > Dependencies should be configured for apr/apr-util library itself: CMake should use library dependencies when properly configured. The legacy tests access Windows LDAP functions directly, and as a result without the above linking fails and the build fails. Reinstating this made the build work again. Note that the apr-trunk has no legacy tests, and no need to link to anything, this is purely an apr-util problem. Regards, Graham --