summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-18 21:27:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-18 21:27:06 (GMT)
commit367f7ed0e338ccf1a698ab0af4bb7ea702fd2d60 (patch)
tree5b0d32006256cbd858ccbdb6cd90182ed04ff7f6 /c++/test
parent4d3f52ac97ea922cefda857c971fbd3608d8994c (diff)
downloadhdf5-367f7ed0e338ccf1a698ab0af4bb7ea702fd2d60.zip
hdf5-367f7ed0e338ccf1a698ab0af4bb7ea702fd2d60.tar.gz
hdf5-367f7ed0e338ccf1a698ab0af4bb7ea702fd2d60.tar.bz2
HDFFV-10845 make flags private
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/c++/test/CMakeLists.txt b/c++/test/CMakeLists.txt
index 95ca9b1..75efc3b 100644
--- a/c++/test/CMakeLists.txt
+++ b/c++/test/CMakeLists.txt
@@ -48,6 +48,11 @@ if (NOT BUILD_SHARED_LIBS)
else ()
TARGET_C_PROPERTIES (cpp_testhdf5 SHARED)
target_link_libraries (cpp_testhdf5 PRIVATE ${HDF5_CPP_LIBSH_TARGET} ${HDF5_LIBSH_TARGET} ${HDF5_TEST_LIBSH_TARGET})
+ if (MINGW)
+ target_link_options (${HDF5_CPP_LIBSH_TARGET}
+ PRIVATE -static-libgcc -static-libstdc++
+ )
+ endif ()
endif ()
set_target_properties (cpp_testhdf5 PROPERTIES FOLDER test/cpp)