[Cmake] Specify static library

Bill Hoffman bill . hoffman at kitware . com
Wed, 11 Jun 2003 13:39:26 -0400


The only way would be to create a directory with only the static files in it.
Or you could try adding a -static flag to the build line.   The problem is that
linkers prefer shared over static.

-Bill


At 12:54 PM 6/11/2003, rbb at rkbloom . net wrote:

>Is it possible to make CMake link against a static library instead of a
>shared library?  I have APR on all of my machines and I am creating a
>group of very small applications that rely on it.  I would prefer to just
>statically link to APR, but CMake always links to the .so/.dll.
>
>Ryan
>
>_______________________________________________
>Cmake mailing list
>Cmake at public . kitware . com
>http://public . kitware . com/mailman/listinfo/cmake