From 9358ecc1a3f38a71598b6df0a851e8df7a554d13 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 27 Mar 2014 15:36:03 -0500 Subject: [svn-r24921] Add MINGW check --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f79ae6c..2b562be 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -610,9 +610,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 $) add_custom_command ( @@ -624,9 +624,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 $) add_custom_command ( -- cgit v0.12