summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-28 15:19:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-28 15:19:03 (GMT)
commit43ff3fdc33acfb46badb63d00971644821cbad25 (patch)
treee23cb0c75d13158b0597e772467002cc24d6a318 /testpar
parenta6df73c723b4ef604e2a0aab06efc72e30b0478a (diff)
downloadhdf5-43ff3fdc33acfb46badb63d00971644821cbad25.zip
hdf5-43ff3fdc33acfb46badb63d00971644821cbad25.tar.gz
hdf5-43ff3fdc33acfb46badb63d00971644821cbad25.tar.bz2
fix get gethostname for windows
Diffstat (limited to 'testpar')
-rw-r--r--testpar/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/testpar/CMakeLists.txt b/testpar/CMakeLists.txt
index 47a0e15..51c3420 100644
--- a/testpar/CMakeLists.txt
+++ b/testpar/CMakeLists.txt
@@ -47,11 +47,13 @@ MACRO (ADD_H5P_EXE file)
TARGET_C_PROPERTIES (${file} STATIC)
target_link_libraries (${file}
PRIVATE ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}>"
+ $<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>
)
else ()
TARGET_C_PROPERTIES (${file} SHARED)
target_link_libraries (${file}
PRIVATE ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}>"
+ $<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>
)
endif ()
set_target_properties (${file} PROPERTIES FOLDER test/par)