summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-01-30 22:03:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-01-30 22:03:03 (GMT)
commit435fd5afa57eb8c3157600431f0c8d4df6257cd4 (patch)
tree52c2016563e20ecacabf7cad45a2226306ec0365 /src
parent1711c3727e11d41268da1c6d4ae0204e081c5e1d (diff)
downloadhdf5-435fd5afa57eb8c3157600431f0c8d4df6257cd4.zip
hdf5-435fd5afa57eb8c3157600431f0c8d4df6257cd4.tar.gz
hdf5-435fd5afa57eb8c3157600431f0c8d4df6257cd4.tar.bz2
HDFFV-10398 add support for Emscriptem build system
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0cc68ac..aaedfda 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -852,6 +852,9 @@ TARGET_C_PROPERTIES (H5detect STATIC " " " ")
if (MSVC OR MINGW)
target_link_libraries (H5detect "ws2_32.lib")
endif ()
+if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
+ set_property(TARGET H5detect PROPERTY LINK_FLAGS "-O0")
+endif ()
add_custom_command (
OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c
@@ -865,6 +868,9 @@ TARGET_C_PROPERTIES (H5make_libsettings STATIC " " " ")
if (MSVC OR MINGW)
target_link_libraries (H5make_libsettings "ws2_32.lib")
endif ()
+if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
+ set_property(TARGET H5make_libsettings PROPERTY LINK_FLAGS "-O0")
+endif ()
add_custom_command (
OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c