【发布时间】:2021-08-18 03:47:40
【问题描述】:
cmake/thirdparty/SetupGeosxThirdParty.cmake:131 处的 CMake 错误(消息): GEOSX需要hdf5,设置HDF5_DIR为hdf5安装目录。
【问题讨论】:
标签: hdf5
cmake/thirdparty/SetupGeosxThirdParty.cmake:131 处的 CMake 错误(消息): GEOSX需要hdf5,设置HDF5_DIR为hdf5安装目录。
【问题讨论】:
标签: hdf5
假设您使用的 cmake 文件名为 GEOSX/host-configs/ubuntu-gcc.cmake,请将其添加到顶部(将 <my_base_dir> 替换为 GeosX 基本目录)
# file: ubuntu-gcc.cmake
set(BASE_DIR "<my_base_dir>" CACHE PATH "" FORCE)
# if building TPLs from the tplMirror repository, set GEOSX_TPL_DIR variable to point to the TPL installation path...
set(GEOSX_TPL_DIR "${BASE_DIR}/thirdPartyLibs/install-ubuntu-gcc-release" CACHE PATH "" FORCE)
# ... , and
include("${BASE_DIR}/GEOSX/host-configs/tpls.cmake")
然后将找到所有第三方库。 虽然我无法完成编译,但我通过了这个障碍。
【讨论】: