Describe the bug
When building against apr-util:x64-windows, the executable is linked to libexpat.dll which is not found when running the program.
I can see that libaprutil-1.dll is copied to Debug. However libexpat.dll is missing.
Environment
To Reproduce
Steps to reproduce the behavior:
# apr-util
find_path(APR_UTIL_INCLUDE_DIR apr_queue.h)
if (WIN32)
find_library(APR_UTIL_LIBRARY libaprutil-1)
message("Found apr util -> " ${APR_UTIL_LIBRARY})
endif(WIN32)
if (UNIX)
find_library(APR_UTIL_LIBRARY aprutil-1)
endif(UNIX)
include_directories(${APR_UTIL_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} PUBLIC ${APR_UTIL_LIBRARY})
Expected behavior
Expected the program to run
Failure logs
None
Additional context
The same build and run works on macos and linux.
Hi @abhishekmishra
Thanks for posting this issue.
Could you please try to build this based on PR #13663 submitted by @janholt ?
Thanks.
Hi @abhishekmishra
Thanks for posting this issue.Could you please try to build this based on PR #13663 submitted by @janholt ?
Thanks.
Apologies for not responding earlier. However I pulled master now (since it looks like the changes are merged), and this works for me. Thanks.