[CMake] find library for static libraries

Robert Bielik robert.bielik at xponaut.se
Thu Mar 31 11:38:28 EDT 2011


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
  


More information about the CMake mailing list