[Cmake] Specifying static or dynamic linking of external libraries?

Andy Cedilnik andy.cedilnik at kitware.com
Tue Oct 22 07:40:02 EDT 2002


Hi Thomas,

Unfortunately at this point in time there is no direct way of doing
that. Alternatives include:
* Specifying the whole path to the static library
* Temporary removing shared library
* Making copy of static library with different name.

			Andy

On Mon, 2002-10-21 at 17:54, Thomas Deschamps wrote:
> I would like to know how to link against static libraries with cmake.
> When both types are existing, cmake is choosing by default the shared 
> object (like gcc).
> Is there a flag to change it?





More information about the CMake mailing list