[CMake] Feature request: force static libs in find_library()

Jed Brown jed at 59A2.org
Thu Nov 6 06:28:02 EST 2008

Add a flag to make find_library() only resolve to static libs and a
global switch to force this for all find_library() calls.

If I want to build a static executable on a system with both shared and
static libraries, my current solution is to run

  sed -i 's/\.so\>/.a/g' CMakeCache.txt

but this is obviously a hack.  My usage case is building an executable
to be run on a cluster where all the shared libs are not available on
all the nodes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081106/a4986e09/attachment.pgp>

More information about the CMake mailing list