[CMake] Static build against system/third-party libraries?
Mike Jackson
mike.jackson at imts.us
Wed Jul 23 10:13:29 EDT 2008
Take a look at the
CMAKE_FIND_LIBRARY_SUFFIXES variable. Here is the help section:
CMAKE_FIND_LIBRARY_SUFFIXES: Suffixes to append when looking for
libraries.
This specifies what suffixes to add to library names when the
find_library command looks for libraries. On Windows systems this is
typically .lib and .dll, meaning that when trying to find the foo
library it will look for foo.dll etc.
Although I have never tried it, you may be able to set this on a
platform dependent basis to .a or .lib and _then_ run the Find*
stuff. Give it a try.
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Jul 23, 2008, at 10:03 AM, Mike Arthur wrote:
> On Wednesday 23 July 2008 14:48:50 you wrote:
>> Just a word of caution if one of your targets is OS X. Apple does NOT
>> support static linking to system libraries. Just FYI.
> What defines a "system library"?
>
> I'm only wanting to do it for Qt.
>
> --
> Cheers,
> Mike Arthur
>
More information about the CMake
mailing list