Hi David, Robert,
In my project I used the approach taken from FindBoost:
include(MacroPushRequiredVars)
macro_push_variables(CMAKE_FIND_LIBRARY_SUFFIXES)
if(UNIX AND WITH_MY_LIB_STATIC)
# Find only static libraries
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
endif(UNIX AND WITH_MY_LIB_STATIC)
David Cole skrev 2011-03-31 17:51:
Does:
find_library(
MY_LIB
libthelibrary.a
PATHS
...
)
work?
Thnx David, it does :)
Regards,
/Rob
___
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kit
Does:
find_library(
MY_LIB
libthelibrary.a
PATHS
...
)
work?
On Thu, Mar 31, 2011 at 11:38 AM, Robert Bielik 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/lib
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