added CMake option GMX_PREFER_STATIC_LIBS (also fixes bug #541)
authorSzilard Pall <pszilard@cbr.su.se>
Fri, 29 Oct 2010 13:44:31 +0000 (15:44 +0200)
committerSzilard Pall <pszilard@cbr.su.se>
Fri, 29 Oct 2010 16:06:33 +0000 (18:06 +0200)
commit29cbabdb8d6a1090e663b935523ee4073ca21387
tree57a263a4fc29b1358c61ec910a6017530d20d7a6
parent7496ee66928bf9c98225174cee8d2075d2d3d6ac
added CMake option GMX_PREFER_STATIC_LIBS (also fixes bug #541)

This option instructs CMake to prefer static external libs when both static
and shared version available. This makes possible linking statically against
external libraries (e.g. fftw, xml2).

The option only available on *NIX platforms, except APPLE and CYGWIN.

Note, that when the option is enabled UILD_SHARED_LIBS gets disabled.
Also note, that with this option on, the binaries built will still be
dynamically linked against system libraries.
CMakeLists.txt