enable GMX_PREFER_STATIC_LIBS CMake option on Mac OS X
authorSzilárd Páll <pszilard@cbr.su.se>
Wed, 24 Oct 2012 00:44:10 +0000 (02:44 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 24 Oct 2012 01:13:17 +0000 (03:13 +0200)
Change-Id: Ifa01573e514bc1a167095023e26c77829eda7b42

CMakeLists.txt

index f29470ec6b7df5e39d6c1fd14c5d0db033196607..95313476492728199df2f6f69db4d1e857c69f8c 100644 (file)
@@ -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)