Why does vcpkg not copy debug dlls? #43155
Unanswered
tksharpless
asked this question in
Q&A
Replies: 1 comment 4 replies
-
UPDATE I rewrote my base cmakelist.txt to work more natively with vcpkg. That did make finding packages simpler and more automatic, but had an unexpected side effect: the builds no longer copy dlls for any configuration, whether or not I enable vckpg_manifest in the vcproj. The main change was to add |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I build numerous programs using cmake scripts to generate MSVS projects. There are lots of opensource dependencies, and I use vcpkg to manage those. Recently I have started using a vcpkg manifest, and enjoying the nice feature that copies the required dlls into the build directories. But that is only working for release and relwithdebinfo builds, not for debug builds.
Several people have reported this problem since 2021. It has been declared resolved a couple of times, but clearly is not. None of the advice I have been able to find fixes it.
The manifest and its vcpkg-installed folder are in a common build directory, separate from my source directories. vcpkg itself is installed in another directory. I have enabled vcpkg manifests in my VS projects, and my build scripts include the following line:
set(CMAKE_TOOLCHAIN_FILE "D:/opensource/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE FILEPATH "Vcpkg integration")
Everything except copying debug dlls seems to work as described in the vcpkg docs.
Beta Was this translation helpful? Give feedback.
All reactions