summaryrefslogtreecommitdiffstats
path: root/c++/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-11-12 16:50:00 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-11-12 16:50:00 (GMT)
commit46bc76ab634ed418c51c4dc50741533027a9cec9 (patch)
treea61d330e19e07747dcaf3bc9eaa35beb6855886c /c++/src/CMakeLists.txt
parentaaca30285228aa56d100734a667db5d4e7942087 (diff)
downloadhdf5-46bc76ab634ed418c51c4dc50741533027a9cec9.zip
hdf5-46bc76ab634ed418c51c4dc50741533027a9cec9.tar.gz
hdf5-46bc76ab634ed418c51c4dc50741533027a9cec9.tar.bz2
Correct TARGET variable and CMake config file location
Diffstat (limited to 'c++/src/CMakeLists.txt')
-rw-r--r--c++/src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
index 04822cf..de2306e 100644
--- a/c++/src/CMakeLists.txt
+++ b/c++/src/CMakeLists.txt
@@ -117,7 +117,7 @@ if (BUILD_SHARED_LIBS)
target_link_libraries (${HDF5_CPP_LIBSH_TARGET}
PUBLIC ${HDF5_LIBSH_TARGET}
)
- if (MINGW)
+ if (MINGW AND HDF5_MINGW_STATIC_GCC_LIBS)
target_link_options (${HDF5_CPP_LIBSH_TARGET}
PRIVATE -static-libgcc -static-libstdc++
)