summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-17 21:08:43 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-17 21:08:43 (GMT)
commit0a9180c0746618d08396d57f3fa5c94aa45e5b65 (patch)
treeb62cc7783440a9408c3eb1db7d0a0e3e4aade576 /c++
parentac8a1f02ab5cb260f23acbe865090033a0183303 (diff)
downloadhdf5-0a9180c0746618d08396d57f3fa5c94aa45e5b65.zip
hdf5-0a9180c0746618d08396d57f3fa5c94aa45e5b65.tar.gz
hdf5-0a9180c0746618d08396d57f3fa5c94aa45e5b65.tar.bz2
HDFFV-10845 update mingw cmake changes
Diffstat (limited to 'c++')
-rw-r--r--c++/src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
index 38c46be..4e668d6 100644
--- a/c++/src/CMakeLists.txt
+++ b/c++/src/CMakeLists.txt
@@ -112,7 +112,10 @@ if (BUILD_SHARED_LIBS)
PRIVATE $<$<BOOL:${HDF5_ENABLE_PARALLEL}>:MPICH_SKIP_MPICXX;MPICH_IGNORE_CXX_SEEK># Parallel/MPI, prevent spurious cpp/cxx warnings
)
TARGET_C_PROPERTIES (${HDF5_CPP_LIBSH_TARGET} SHARED)
- target_link_libraries (${HDF5_CPP_LIBSH_TARGET} PUBLIC ${HDF5_LIBSH_TARGET})
+ target_link_libraries (${HDF5_CPP_LIBSH_TARGET}
+ PUBLIC ${HDF5_LIBSH_TARGET}
+ PRIVATE $<$<PLATFORM_ID:MinGW>:-static -static-libgcc -static-libstdc++ -dynamic>
+ )
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_CPP_LIBSH_TARGET}")
H5_SET_LIB_OPTIONS (${HDF5_CPP_LIBSH_TARGET} ${HDF5_CPP_LIB_NAME} SHARED "CXX")
set_target_properties (${HDF5_CPP_LIBSH_TARGET} PROPERTIES FOLDER libraries/cpp)