mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 13:36:25 +00:00
build-all.py - hdf5 to use cmake instead of ctest
After version 1.13.0 it seems hdf5 stopped publishing builds on the ftp and they also stopped publishing `CMake-hdf5-*` builds. Switching to cmake, it will also make it consistent with build-deps.cmd
This commit is contained in:
+16
-7
@@ -684,15 +684,24 @@ if "hdf5" in targets:
|
|||||||
for f in compiler_flags:
|
for f in compiler_flags:
|
||||||
os.environ[f] = re.sub(r"-flto(=\w+)?", "", os.environ[f])
|
os.environ[f] = re.sub(r"-flto(=\w+)?", "", os.environ[f])
|
||||||
|
|
||||||
|
HDF5_UNDERSCORE = "_".join(HDF5_VERSION.split("."))
|
||||||
HDF5_MAJOR = ".".join(HDF5_VERSION.split(".")[:-1])
|
HDF5_MAJOR = ".".join(HDF5_VERSION.split(".")[:-1])
|
||||||
|
dependency_name = f"hdf5-{HDF5_VERSION}"
|
||||||
build_dependency(
|
build_dependency(
|
||||||
name=f"hdf5-{HDF5_VERSION}",
|
name=dependency_name,
|
||||||
mode="ctest",
|
mode="cmake",
|
||||||
build_tool_args=[],
|
build_tool_args=[
|
||||||
download_url=f"https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-{HDF5_MAJOR}/hdf5-{HDF5_VERSION}/src/",
|
f"-DCMAKE_INSTALL_PREFIX={DEPS_DIR}/install/{dependency_name}",
|
||||||
download_name=f"CMake-hdf5-{HDF5_VERSION}.tar.gz",
|
"-DHDF5_ENABLE_Z_LIB_SUPPORT=OFF",
|
||||||
ctest_result=f"HDF5-{HDF5_VERSION}-{platform.system()}",
|
"-DBUILD_TESTING=OFF",
|
||||||
ctest_result_path=f"HDF_Group/HDF5/{HDF5_VERSION}",
|
"-DHDF5_BUILD_TOOLS=OFF",
|
||||||
|
"-DHDF5_BUILD_EXAMPLES=OFF",
|
||||||
|
"-DBUILD_SHARED_LIBS=OFF",
|
||||||
|
"-DHDF5_BUILD_UTILS=OFF",
|
||||||
|
"-DHDF5_BUILD_CPP_LIB=ON",
|
||||||
|
],
|
||||||
|
download_url=f"https://github.com/HDFGroup/hdf5/archive/refs/tags/",
|
||||||
|
download_name=f"hdf5-{HDF5_UNDERSCORE}.tar.gz",
|
||||||
)
|
)
|
||||||
|
|
||||||
for f, o in zip(compiler_flags, orig):
|
for f, o in zip(compiler_flags, orig):
|
||||||
|
|||||||
Reference in New Issue
Block a user