[CMake] CMake: using dlopen

Franck Houssen franck.houssen at inria.fr
Sat Jan 6 09:34:48 EST 2018


Hello, 

I have an executable that needs dlopen. 

Googled this a bit: seems (surprisingly) there is no FindDLUtils ?!.. Correct ? If so, why is this ? 
My understanding is that I need to go: 
~BUILD> cmake -DCMAKE_LD_LIBS="-ldl -L/path/to/dl" .. 
which is, basically, telling to CMake where dl is (although this is the job of a build system, no ?!) 

Did I understand correctly ? Did I miss something ? 

Franck 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180106/f992f055/attachment.html>


More information about the CMake mailing list