Marcel Loose wrote:
On Mon, 2009-05-11 at 13:39 -0400, Brad King wrote:
find_library(MATH_LIB NAMES libm.a)
Does that also mean that I could change the default search order by
using:
find_library(MATH_LIB NAMES libm.a libm.so)
The search looks for all the names in each directory before moving on
to the next directory, so this will still find the .so if the first
directory does not have the .a archive.
The following should work, though:
find_library(MATH_LIB NAMES libm.a)
find_library(MATH_LIB NAMES m)
-Brad
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake