[CMake] CheckLibraryExists behaviour with different compilers

Nils Gladitz nilsgladitz at gmail.com
Mon Apr 20 06:33:55 EDT 2015


On 04/20/2015 12:28 PM, victor sv wrote:
> After googling and reading this:
>
> http://www.opal-rt.com/kb-article/undefined-reference-intel-fast-memset-build-error-related-rte-delay
>
> I try to link against libirc.a and libimf.a and it works fine. I do
> other test compiling a shared METIS library with Intel compilers and it
> works too.
>
> There is something that I'm not well understanding ... If I build a
> static library, even with Intel compilers,shouldn't this library contain
> all the needed symbols?

A static library is basically a container of object files.
Library dependencies are normally neither included within that container 
nor are they recorded.

Nils


More information about the CMake mailing list