Is there a way to set library search-path from the command-line?
I'm building ParaView on Ubuntu, and having to set explicit library paths like
-DX11_X11_LIB=/usr/lib/x86_64-linux-gnu/libX11.so
-DX11_Xt_LIB=/usr/lib/x86_64-linux-gnu/libXt.so
-DX11_ICE_LIB=/usr/lib/x86_64-linux-gnu/libICE.so
-DX11_SM_LIB=/usr/lib/x86_64-linux-gnu/libSM.so
-DOPENGL_gl_LIBRARY=/usr/lib/x86_64-linux-gnu/libOpenGL.so
-DOPENGL_glx_LIBRARY=/usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.0
-DOPENGL_glx_LIBRARY=/usr/lib/x86_64-linux-gnu/libGLX.so
If they were under /usr/lib I expect that the cmake
logic would have found them for me.
Is there a variable like LIBRARY_PATH
that I can set for this?
I'm not talking about re-writing the CMakeList.txt
file, I really want something I can pass on the cmake command-line.
Edited by Carl