[CMake] /usr/lib/path/to/libmyfancylib.a -> -Wl, -Bstatic -lmyfancylb -Wl, -Bdynamic
Andreas Naumann
Andreas-Naumann at gmx.net
Fri Jun 21 14:47:09 EDT 2013
It explains, why the library names are cutted, but it does not explain,
why cmake sometimes chooses static and sometimes dynamic libaries. It
should consequently set static for each library in the given list.
Andreas
On 21.06.2013 20:34, Nico Schlömer wrote:
> That's true indeed: The compiler is able to find netcdf by itself.
> Something like
>
> $ cc test.o -lnetcdf
>
> doesn't fail on the machine that I'm working on. I don't understand
> why it would do the translation there though.
>
> --Nico
>
More information about the CMake
mailing list