[CMake] LD_LIBRARY_PATH problem
Eric Bolz
ebolz at mitre.org
Wed Oct 13 13:15:42 EDT 2004
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?
More information about the CMake
mailing list