Skip to content

conan build fails because of wrong [options] section #681

@pmiddend

Description

@pmiddend

I was trying to build h5cpp (inside another cmake project that I'm working on) with conan and encountered the following error message:

ERROR: Error while parsing [options] in conanfile.txt
Options should be specified as 'pkg/*:option=value'
CMake Error at build/_deps/h5cpp-src/cmake/conan.cmake:567 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  build/_deps/h5cpp-src/cmake/conan.cmake:918 (old_conan_cmake_install)
  build/_deps/h5cpp-src/CMakeLists.txt:35 (conan_cmake_run)

I was able to fix this by replacing the lines like hdf5:enable_cxx=False with hdf5*:enable_cxx=False. Not sure why I needed to do that. Maybe a newer conan version?

This section in the conan docs explains the syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions