Re: [CMake] Howto let FIND_LIBRARY prefer static over shared libraries

2010-12-10 Thread Brad King
On 12/10/2010 06:36 AM, Marcel Loose wrote: > Is there a way to let FIND_LIBRARY prefer static over shared > libraries? > I know of one, but that's a bit hack-ish: > > SET(CMAKE_FIND_LIBRARY_SUFFIXES .a) > > Are there other options? > Ideally, I would like to be able to specify this per libra

[CMake] Howto let FIND_LIBRARY prefer static over shared libraries

2010-12-10 Thread Marcel Loose
Hi all, Is there a way to let FIND_LIBRARY prefer static over shared libraries? I know of one, but that's a bit hack-ish: SET(CMAKE_FIND_LIBRARY_SUFFIXES .a) Are there other options? Ideally, I would like to be able to specify this per library search, i.e. as an option to FIND_LIBRARY. Best