[CMake] alternative library names?

Nico Schlömer nico.schloemer at gmail.com
Wed Jul 15 13:06:02 EDT 2009


Alright, after having found

http://www.cmake.org/cmake/help/cmake2.6docs.html#command:find_library

aka tfm (as is rtfm) is was pretty straightforward. Sorry for the noise!

Cheers,
Nico


On Wednesday 15 July 2009 18:42:20 you 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



More information about the CMake mailing list