Skip to content

Cmake target_link_libraries unable to find nlohmann_json since version 3.2.0 #1243

Description

@SylvainCorlay

We updated from 3.1.2 to 3.2.0. The update causes the target_link_libraries cmake command to not properly include nlohmann_json, while find_package(nlohmann_json REQUIRED) did not result in an error.

After some investigation, it seems that the issue was the addition of namespaces to target names which is a backward incompatible change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions