Skip to content

Install dependencies dlls cleanly with CMake

How to do it:

https://github.com/microsoft/vcpkg/issues/13797

You don't copy dlls copied by vcpkg.....

Instead you use the cmake to do it: https://cmake.org/cmake/help/latest/command/file.html#get-runtime-dependencies

because otherwise your buildscript has a hard dependency on vcpkg.

vcpkg does something similar as GET_RUNTIME_DEPENDENCIES just at build time. You also could do that with CMake but it requires setting up an additional custom target.

Edited by celeborn2bealive