Skip to content

CMake target nlohmann_json does not have src into its interface includes #741

Description

@sogartar

If you do in CMake:

add_subdirectory(nlohmann/json)
target_link_libraries(my_target PRIVATE nlohmann_json)

Then my_target does not have nlohmann/json/src into its includes, where json.hpp is. You can not properly include this project into other CMake projects.
Note that in v2.1.1 it used to be OK.

Activity

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

Metadata

Metadata

Assignees

Labels

solution: proposed fixa fix for the issue has been proposed and waits for confirmation

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions