From 95d967e21c4733022dc2f0dd0f5896bd1d063830 Mon Sep 17 00:00:00 2001 From: Szilard Pall Date: Fri, 29 Oct 2010 19:04:44 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.22.0