【问题标题】:how to set HDF5_DIR to the hdf5 installation directory on macmac上如何设置HDF5_DIR为hdf5安装目录
【发布时间】:2021-08-18 03:47:40
【问题描述】:

cmake/thirdparty/SetupGeosxThirdParty.cmake:131 处的 CMake 错误(消息): GEOSX需要hdf5,设置HDF5_DIR为hdf5安装目录。

【问题讨论】:

    标签: hdf5


    【解决方案1】:

    假设您使用的 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")
    

    然后将找到所有第三方库。 虽然我无法完成编译,但我通过了这个障碍。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-10
      • 1970-01-01
      • 2014-12-10
      • 2023-01-25
      • 2010-10-12
      • 2019-11-23
      相关资源
      最近更新 更多