diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-09-30 15:47:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 15:47:44 (GMT) |
commit | 6b9ee19248e7e093fe75f70faec37fc77bf7af04 (patch) | |
tree | d4a4ad17068d6a660d7241b183230d8e3c68d4a5 /config/cmake_ext_mod | |
parent | 4da60c96ea2d2e7b3db45b01e17acce618c37830 (diff) | |
download | hdf5-6b9ee19248e7e093fe75f70faec37fc77bf7af04.zip hdf5-6b9ee19248e7e093fe75f70faec37fc77bf7af04.tar.gz hdf5-6b9ee19248e7e093fe75f70faec37fc77bf7af04.tar.bz2 |
Merge Upgrade libaec to 1.0.6 #1037 (#1038)
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r-- | config/cmake_ext_mod/HDFLibMacros.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFLibMacros.cmake b/config/cmake_ext_mod/HDFLibMacros.cmake index 821ac2d..1ac4134 100644 --- a/config/cmake_ext_mod/HDFLibMacros.cmake +++ b/config/cmake_ext_mod/HDFLibMacros.cmake @@ -145,7 +145,11 @@ macro (EXTERNAL_SZIP_LIBRARY compress_type encoding) set (SZIP_LIBRARIES ${SZIP_STATIC_LIBRARY}) set (SZIP_INCLUDE_DIR_GEN "${BINARY_DIR}") - set (SZIP_INCLUDE_DIR "${SOURCE_DIR}/src") + if (USE_LIBAEC) + set (SZIP_INCLUDE_DIR "${SOURCE_DIR}/include") + else () + set (SZIP_INCLUDE_DIR "${SOURCE_DIR}/src") + endif () set (SZIP_FOUND 1) set (SZIP_INCLUDE_DIRS ${SZIP_INCLUDE_DIR_GEN} ${SZIP_INCLUDE_DIR}) endmacro () @@ -154,6 +158,8 @@ endmacro () macro (PACKAGE_SZIP_LIBRARY compress_type) set (SZIP_HDR "SZconfig") if (USE_LIBAEC) + set (SZIP_HDR "aec_config") + else () set (SZIP_HDR "libaec_Export") endif () add_custom_target (SZIP-GenHeader-Copy ALL |