[CMake] Copying Shared Libraries (DLLs) Next to the Executable

Hendrik Sattler post at hendrik-sattler.de
Thu Feb 22 15:17:51 EST 2018



Am 22. Februar 2018 04:20:40 MEZ schrieb "Marek Vojtko (Firaxis)" <Marek.Vojtko at firaxis.com>:
>I was looking into GetPrerequisites and FixupBundle, but both of those
>operate on an already existing executable and try to guess what shared
>libraries (DLLs) it might need. It feels silly to guess at something
>that CMake already knows (as the IMPORTED target sets the
>IMPORTED_IMPLIB and IMPORTED_LOCATION properties).

Actually at the point of installation this is the best approach especially for multi-config generators like e.g. Visual Studio. Else you'd have to know if a found .lib file is a shared or a static library (how?) and what DLL file it references. That's actually much more work than just looking at the actually dependencies of the binaries. Additionally if you don't exactly know for 3rd party binaries or plugins.

Catching all directories to find the dll files is also not simple but easier.

HS

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.


More information about the CMake mailing list