On 2008-07-26 16:06-0400 Bob Paddock wrote:

find_library( MinGW_libuuid uuid ole32 shell32 "C:/MinGW/lib" )
find_library( MinGW_libole32 ole32 "C:/MinGW/lib" )
find_library( MinGW_libshell32 shell32 "C:/MinGW/lib" )

# Is there a better way to do the above?  What happens when you have dozens of
# libraries?'

Look up the find_library command in the documentation.  Especially the part
that starts "The reason the paths listed in the call to the command are
searched last...."

You can force specific paths for libraries using certain options of the
find_library command.  However, if users of your build system have a
non-standard install location for some library or group of libraries, I
think it is normally best to let that user set CMAKE_LIBRARY_PATH for
themselves rather than trying to force anything in the build system itself.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to