enabled GMX_PREFER_STATIC_LIBS CMake option for CYGWIN
authorSzilard Pall <pszilard@cbr.su.se>
Fri, 29 Oct 2010 17:04:44 +0000 (19:04 +0200)
committerSzilard Pall <pszilard@cbr.su.se>
Fri, 29 Oct 2010 17:04:44 +0000 (19:04 +0200)
As it turns out that Cygwin also uses ".a" for static libraries,
the it is safe to enable this option.

CMakeLists.txt

index ab019fc1d9e2fb3c87f247e200380c4e0f44c45f..d14affe70d35c7d234fa74fd96ef663b4955b192 100644 (file)
@@ -122,8 +122,8 @@ mark_as_advanced(USE_VERSION_H)
 
 option(GMX_DEFAULT_SUFFIX "Use default suffixes for GROMACS binaries and libs (_d for double, _mpi for MPI; rerun cmake after changing to see relevant options)" ON)
 
-if(UNIX AND NOT APPLE AND NOT CYGWIN)
-    option(GMX_PREFER_STATIC_LIBS "When finding libraries prefer \".a\" static archives (NOTE: this is enabled only for UNIX (excluding APPLE and CYGWIN) platforms but it might not always work!" OFF)
+if(UNIX AND NOT APPLE)
+    option(GMX_PREFER_STATIC_LIBS "When finding libraries prefer \".a\" static archives (NOTE: this is enabled only for UNIX (excluding APPLE) platforms but it might not always work!" OFF)
     mark_as_advanced(GMX_PREFER_STATIC_LIBS)
 endif()
 
@@ -358,7 +358,7 @@ test_big_endian(GMX_INTEGER_BIG_ENDIAN)
 ########################################################################
 # Find external packages                                               #
 ########################################################################
-if(UNIX AND NOT APPLE AND NOT CYGWIN)
+if(UNIX AND NOT APPLE)
     if(GMX_PREFER_STATIC_LIBS)
         SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
         if(BUILD_SHARED_LIBS)