【发布时间】:2020-07-11 23:19:16
【问题描述】:
我尝试在我的应用程序中添加包 hdf5/1.10.6。我遇到了以下错误。
[build] ERROR: Conflict in hdf5/1.10.6
[build] Requirement zlib/1.2.11 conflicts with already defined zlib/1.2.11@conan/stable
[build] To change it, override it in your base requirements
[build] CMake Error at build/conan.cmake:402 (message):
[build] Conan install failed='1'
[build] Call Stack (most recent call first):
[build] build/conan.cmake:497 (conan_cmake_install)
[build] CMakeLists.txt:12 (conan_cmake_run)
有一个依赖于“zlib/1.2.11@conan/stable”的现有包。 hdf5/1.10.5 依赖于'zlib/1.2.11'。
我该如何解决这个冲突?有没有办法指定 zlib/1.2.11@conan/stable = zlib/1.2.11?
谢谢
【问题讨论】:
-
请参阅stackoverflow.com/questions/60928441/… 的 cmets 以获得解释和修复。
标签: c++ cmake dependency-management hdf5 conan