cmake/thirdparty/SetupGeosxThirdParty.cmake:131出现CMake错误(消息):GEOSX需要hdf5,请将HDF5_DIR设置为hdf5安装目录。
发布于 2021-08-17 19:47:41
假设您正在使用的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")然后会找到所有的第三方库。我通过了这个障碍,尽管我不能最终完成编译。
https://stackoverflow.com/questions/68474101
复制相似问题