[CMake] find_library doesn't find .dll on windows

Bill Hoffman bill.hoffman at kitware.com
Tue Jun 5 11:21:14 EDT 2018


On 6/1/2018 6:30 PM, Romain LEGUAY wrote:
> Thank you for your answer.
>
> I just want to find the file libmysql.dll because it's needed to be 
> used with Qt (unless I did not understand how to use Qt's MySQL driver).
> For now, I just do a simple copy of this file in my build folder, but 
> it's not a good method.

So, for Windows runtime you have to have the dll in the same directory 
as the exe or in the PATH.  There is no concept of rpath built into an exe.

-Bill




More information about the CMake mailing list