From: Szilard Pall Date: Fri, 29 Oct 2010 17:04:44 +0000 (+0200) Subject: enabled GMX_PREFER_STATIC_LIBS CMake option for CYGWIN X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=95d967e21c4733022dc2f0dd0f5896bd1d063830;p=alexxy%2Fgromacs.git enabled GMX_PREFER_STATIC_LIBS CMake option for CYGWIN As it turns out that Cygwin also uses ".a" for static libraries, the it is safe to enable this option. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ab019fc1d9..d14affe70d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)