summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2014-03-27 20:34:35 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2014-03-27 20:34:35 (GMT)
commit5ccbc671e47e10666d2898cabcd9e90bd69ea661 (patch)
tree610ad06237c66f61942005321c129815dfed98b8
parent65ebbe2753991ebd0fe873241af33cde786ea068 (diff)
downloadhdf5-5ccbc671e47e10666d2898cabcd9e90bd69ea661.zip
hdf5-5ccbc671e47e10666d2898cabcd9e90bd69ea661.tar.gz
hdf5-5ccbc671e47e10666d2898cabcd9e90bd69ea661.tar.bz2
[svn-r24919] Add MINGW check
Tested: MinGW on Windows 7
-rw-r--r--src/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ce1c725..ce70744 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -770,9 +770,9 @@ set (H5_PRIVATE_HEADERS
#-----------------------------------------------------------------------------
add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c)
TARGET_C_PROPERTIES (H5detect " " " ")
-if (MSVC)
+if (MSVC OR MINGW)
target_link_libraries (H5detect "ws2_32.lib")
-endif (MSVC)
+endif (MSVC OR MINGW)
set (CMD $<TARGET_FILE:H5detect>)
add_custom_command (
@@ -784,9 +784,9 @@ add_custom_command (
add_executable (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
TARGET_C_PROPERTIES (H5make_libsettings " " " ")
-if (MSVC)
+if (MSVC OR MINGW)
target_link_libraries (H5make_libsettings "ws2_32.lib")
-endif (MSVC)
+endif (MSVC OR MINGW)
set (CMD $<TARGET_FILE:H5make_libsettings>)
add_custom_command (