summaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-04-07 18:07:41 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-04-07 18:07:41 (GMT)
commit3cba2b092f4aa552be326c40b1f4cf3a5f1a4e82 (patch)
treee0ef64b76a0f2a37e693005416f947c2a8639564 /test/CMakeLists.txt
parentf9ef7ec457734ed8f45656fb1e7f934107a77390 (diff)
downloadhdf5-3cba2b092f4aa552be326c40b1f4cf3a5f1a4e82.zip
hdf5-3cba2b092f4aa552be326c40b1f4cf3a5f1a4e82.tar.gz
hdf5-3cba2b092f4aa552be326c40b1f4cf3a5f1a4e82.tar.bz2
[svn-r20433] Implement MinGW changes to CMake configuration
Tested: local linux
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ca975f9..ba5f1cb 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -25,6 +25,9 @@ ADD_LIBRARY (${HDF5_TEST_LIB_TARGET} ${LIB_TYPE} ${TEST_LIB_SRCS} ${TEST_LIB_HEA
IF (MSVC)
TARGET_LINK_LIBRARIES (${HDF5_TEST_LIB_TARGET} "ws2_32.lib")
ENDIF (MSVC)
+IF (MINGW)
+ TARGET_LINK_LIBRARIES (${HDF5_TEST_LIB_TARGET} "wsock2.lib")
+ENDIF (MINGW)
TARGET_LINK_LIBRARIES (${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_TEST_LIB_TARGET}")
H5_SET_LIB_OPTIONS (${HDF5_TEST_LIB_TARGET} ${HDF5_TEST_LIB_NAME} ${LIB_TYPE})