Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the library built and what is the name? #1977

Closed
coderDec opened this issue Mar 9, 2020 · 6 comments
Closed

Where is the library built and what is the name? #1977

coderDec opened this issue Mar 9, 2020 · 6 comments
Labels
kind: question state: needs more info the author of the issue needs to provide more details

Comments

@coderDec
Copy link

coderDec commented Mar 9, 2020

  • Describe what you want to achieve.
    I see that the documentation mentions "

To use this library from a CMake project, you can locate it directly with find_package()
however, when I build the project, I do not see any library built.

  • Describe what you tried.
    History of commands
    2074 git clone https://github.com/nlohmann/json.git 2075 git branch 2076 ls 2077 cd json/ 2078 git branch 2079 git pull 2080 ls 2081 vi CODE_OF_CONDUCT.md 2082 mkdir build 2083 cd build/ 2084 ls 2085 cmake .. 2086 cmake --build . 2087 ctest --output-on-failure
  • Describe which system (OS, compiler) you are using.
    find . -name "lib*"
    ./CMakeFiles/Export/lib
    ./test/cmake_add_subdirectory/nlohmann_json/CMakeFiles/Export/lib

and in these locations, it is not the library.

  • Describe which version of the library you are using (release version, develop branch).
    develop branch
@nickaein
Copy link
Contributor

As mentioned in README, this is single-header library and there is no need to build anything. Just add the provided json.hpp to your project and you are good to go.

@coderDec
Copy link
Author

@nickaein if I want to use it as an external component to my project. What is the suggestion?

@coderDec
Copy link
Author

I also tried this : #1976 (comment)

It still fails

@stale
Copy link

stale bot commented Apr 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Apr 11, 2020
@nlohmann
Copy link
Owner

In order to asses your issue, we need the following information:

  • What is the issue you have?

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?

  • And what is the actual behavior instead?

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

@stale stale bot removed the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Apr 11, 2020
@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Apr 11, 2020
@ArtemSarmini
Copy link
Contributor

ArtemSarmini commented Apr 13, 2020

@coderDec cmake integration is described here https://github.com/nlohmann/json#cmake. You may add PATHS <path_to_json> argument to find_package if path is non-default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

4 participants