Skip to content

should't the cmake install target be to nlohman/json.hpp #668

@dan-42

Description

@dan-42

dear @nlohmann and other developers
first of all many thx for this awesome lib. The usage and simplicity is very cool and I and some former coworkers use it on many places in production and private projects.

So my question: is it on purpose that cmake exposes the json.hpp for include directly?
after all a cmake install installes the file into nlohmann/json.hpp and the usage is also
inside the namespace nlohmann?

so for the sake of consistancy in bigger projects and also to avoid name collisions with other libraries in package managers, it might be better to atleast for cmake install to expose the the include to nlohmann/json.jpp and users of package managers could easaly disdinguish between nlohmann_json, jsoncpp, and so on.

The cause of my request is, that I wanted to update the cmake/hunter package which was still on V1.0.0rc. and integrating nlohman_json with the current CMakeLists.txt would cause an inconsistency with the package name, the include and the namespace the user has to see.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions