[CMake] Missing dll on program startup - a way automate it?
cen
imbacen at gmail.com
Tue Nov 19 19:01:55 EST 2019
Hi
Perhaps not really a cmake problem but here we go. An exe depends on a
few DLLs which I ship in the repo so the rest of the devs don't have to
build them or fetch them somewhere else. Cmake finds the libraries and
project builds just fine, until you run it from VS.. you are welcomed by
the "missing dll" windows error. So I have to copy all the dlls to the
build/run folder to make it work but this is a manual step. Is there
some way in cmake/VS to somehow tell the IDE to append the execution
$PATH with all the specified library dependencies or something along
those lines? Ideally my goal is to just run cmake, open VS, build the
project and run, all automagical.
I would prefer to keep the dynamic linking.
Best regards, cen
More information about the CMake
mailing list