pboettch / json-schema-validator

JSON schema validator for JSON for Modern C++
Other
463 stars 133 forks source link

how to use conan to build the project? #275

Closed risa2000 closed 5 months ago

risa2000 commented 11 months ago

I am trying to build the project while using conan. However I am not sure how should I do it correctly. I am familiar with how conan works with CMake generators (CMakeDeps and CMakeToolchain) in their most recent reincarnation, but it seems the project uses the "older" conan support for CMake. Simply running

conan install -s compiler.cppstd=20 -s compiler.version=193 -s build_type=Debug .

will generate the conan files into the project folder, but then choosing the x64 Debug build from CMakePresets.json insists on downloading the nlohmann_json library into the build folder anyway. (While it is already present in local .conan cache and correctly identifid by conan install).

I am using Visual Studio 2022 and its IDE support for CMake. I had to downgrade the CMakePresets.json version to 5 as it does not support 6, but appart from the problem described above did not notice any issue. Is version 6 necessary?

pboettch commented 7 months ago

Related #292

pboettch commented 5 months ago

Could you retry your build, on the main branch there was a conanfile improvement done.

risa2000 commented 5 months ago

@pboettch Hi there! I am sorry, but I am no longer working with your project.