On 15. Jul, 2009, at 18:42, Nico Schlömer wrote:

Hi,

I'm using CMake for a program that links against common libraries which may happen to have different names on different architectures (e.g., libfoobar.a,
libmyfoobar.a, libyourfoobar.a,...).

Until now I was always searching for libs like this

================= *snip* =================
find_library( FOOBAR  foobar  HINTS /possible/path/to/lib/ )
================= *snap* =================

but that is obviously restrictive when it comes to the package name.

How would you deal with this is CMake?

Cheers,
Nico



How about this?

find_library( FOOBAR_LIBRARY NAMES foobar myfoobar yourfoobar )


HTH

Michael

_______________________________________________
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

Reply via email to