[CMake] LD_LIBRARY_PATH problem

William A. Hoffman billlist at nycap.rr.com
Wed Oct 13 13:48:15 EDT 2004


The problem is that there must be some other library in /usr/local/lib that
you are using and it is adding a -L/usr/local/lib.   If you do a make VERBOSE=2
you can see the actual link line, and I suspect that /pkg/xrt_pds-2.2/lib is after
/usr/local/lib with the -L options.   

-Bill


At 01:15 PM 10/13/2004, Eric Bolz wrote:
>I'm having problems getting cmake to link the proper library when the same library name exists in more than one place.
>How is the LD_LIBRARY_PATH involved in this?
>If I do the following:
>FIND_LIBRARY( XPM_LIB   NAMES  Xpm  PATHS  /pkg/xrt_pds-2.2/lib)
>MESSAGE("${XPM_LIB}")
>Cmake is finding the Xpm library in /usr/local/lib
>Why?  I did not tell it to look there.
>I'm guessing cmake is looking in the LD_LIBRARY_PATH before the it looks in the path I specified.
>How can I force cmake to get the library I want?
>
>_______________________________________________
>CMake mailing list
>CMake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list