set(SHARED_LIBS_DEFAULT OFF)
endif()
set(GMX_PREFER_STATIC_LIBS_DEFAULT OFF)
-if (WIN32 AND NOT CYGWIN AND NOT BUILD_SHARED_LIBS)
+if (WIN32 AND NOT BUILD_SHARED_LIBS)
set(GMX_PREFER_STATIC_LIBS_DEFAULT ON)
endif()
if (NOT GMX_BUILD_SHARED_EXE)
if (UNIX)
set(GMX_PREFER_STATIC_LIBS_DESCRIPTION
"When finding libraries prefer static archives (it will only work if static versions of external dependencies are available and found)")
-elseif (WIN32 AND NOT CYGWIN)
+elseif (WIN32)
set(GMX_PREFER_STATIC_LIBS_DESCRIPTION
"When finding libraries prefer static system libraries (MT instead of MD)")
endif()
endforeach()
endfunction()
-IF( WIN32 AND NOT CYGWIN)
+IF( WIN32)
if (NOT BUILD_SHARED_LIBS)
if(NOT GMX_PREFER_STATIC_LIBS)
message(WARNING "Shared system libraries requested, and static Gromacs libraries requested.")
#this combination segfaults (illegal passing of file handles)
message(FATAL_ERROR "Static system libraries requested, and shared Gromacs libraries requested.")
endif()
- add_definitions(-DUSE_VISIBILITY -DTMPI_USE_VISIBILITY)
- set(PKG_CFLAGS "$PKG_CFLAGS -DUSE_VISIBILITY -DTMPI_USE_VISIBILITY")
+ # Visibility not yet implemented
+ # add_definitions(-DUSE_VISIBILITY -DTMPI_USE_VISIBILITY)
+ # set(PKG_CFLAGS "$PKG_CFLAGS -DUSE_VISIBILITY -DTMPI_USE_VISIBILITY")
endif()
IF (GMX_PREFER_STATIC_LIBS)