From: Szilárd Páll Date: Wed, 24 Oct 2012 00:44:10 +0000 (+0200) Subject: enable GMX_PREFER_STATIC_LIBS CMake option on Mac OS X X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=caca1712fc120435ab9dafa81704ea7feb6c74ff;p=alexxy%2Fgromacs.git enable GMX_PREFER_STATIC_LIBS CMake option on Mac OS X Change-Id: Ifa01573e514bc1a167095023e26c77829eda7b42 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f29470ec6b..9531347649 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -198,8 +198,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) - 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) +if(UNIX) + option(GMX_PREFER_STATIC_LIBS "When finding libraries prefer \".a\" static archives (NOTE: this is enabled only for UNIX platforms but it might not always work!" OFF) mark_as_advanced(GMX_PREFER_STATIC_LIBS) endif() @@ -466,7 +466,7 @@ test_big_endian(GMX_INTEGER_BIG_ENDIAN) ######################################################################## # Find external packages # ######################################################################## -if(UNIX AND NOT APPLE) +if(UNIX) if(GMX_PREFER_STATIC_LIBS) SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) if(SHARED_LIBS_DEFAULT)