Skip to content

Requires nlohmann_json::nlohmann_json when built outside of eic_shell #117

@DraTeots

Description

@DraTeots

When is built outside of EICShell the build fails with:

CMake Error at /home/romanov/soft/edm4hep/edm4hep-install/lib/cmake/EDM4HEP/EDM4HEPTargets.cmake:61 (set_target_properties):
  The link interface of target "EDM4HEP::edm4hep" contains:

    nlohmann_json::nlohmann_json

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /home/romanov/soft/edm4hep/edm4hep-install/lib/cmake/EDM4HEP/EDM4HEPConfig.cmake:43 (include)
  CMakeLists.txt:37 (find_package)

Adding nlohmann_json fixes the build

find_package(nlohmann_json)    # not REQUIRED

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