[cmake-developers] Shared library under Windows and CMake: DLL not found before installation

Raffi Enficiaud raffi.enficiaud at free.fr
Wed Feb 6 14:05:31 EST 2019



On 06.02.19 19:46, Joachim Wuttke wrote:
> <snip>
>
> Works under Linux, stable since many years. Under Windows10 though, a
> message window
> pops up, entitled "mytest.exe - System error": "The code execution
> cannot proceed
> because mylib.dll was not found. Reinstalling the program may fix this
> problem."
>
> No, installing (rather than reinstalling) would not be a good
> solution: I need to
> first test the library before I install it (btw: this excludes most
> solutions
> proposed in response to somewhat similar questions).
>
> Isn't CMake supposed to work cross-platform? What is the minimally
> invasive adjustment
> to make the above build steps work under Windows?
>
> Disclosure: this is a cross-posting from
> https://stackoverflow.com/questions/54560434.
But I believe this is rather a question for the cmake-user mailing list.

So I replied on SO :)

Raffi



More information about the cmake-developers mailing list