Skip to content

include problem, when cmake on osx #672

Closed

Description

@xiazhibin

I clone the project , and make install.
In my cpp file, I must #include "nlohmann/json.hpp" not #include "json.hpp" as it mentions

Why?

Activity

  1. dan-42 commented on Jul 31, 2017

    @dan-42
    Contributor

    This is due the latest changes in the CMakeLists.txt to be consistent with the projects name and namespace. Also to avoid polute a systems include folder when other libraries might have a json.hpp as well.

    And for full consistency, the develop-branch is preparing version 3.0.0 which will bring breaking changes as well.
    If you do not need special features from the current develop-branch it might be advised for you to use the master branch as the lates stable release.

    Nonetheless it might be an option to enable when running cmake && make install to define if it should be in a subfolder or not.

  2. xiazhibin commented on Jul 31, 2017

    @xiazhibin
    Author

    I see.Thanks a lot!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions