[CMake] find library for static libraries

David Cole david.cole at kitware.com
Thu Mar 31 11:51:47 EDT 2011


Does:

  find_library(
    MY_LIB
    libthelibrary.a
    PATHS
  ...
  )

work?


On Thu, Mar 31, 2011 at 11:38 AM, Robert Bielik <robert.bielik at xponaut.se>wrote:

> I'm trying to use find_library to find static (.a) libraries on Mac OS X
> (cmake 2.8.1). In a lib path I have f.i.:
>
> .../lib/libthelibrary.a
> .../lib/libthelibrary.dylib
>
> and with:
>
> find_library(
>   MY_LIB
>   thelibrary
>   PATHS
> ...
> )
>
> it consequently finds only the .dylib ones, whereas I'd like to get hold of
> the .a ones...
>
> How to?
>
> TIA
> /Rob
>  _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110331/47133dd8/attachment.htm>


More information about the CMake mailing list