how to use conan to build the project?
risa2000 opened this issue · comments
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?
Related #292
Could you retry your build, on the main branch there was a conanfile improvement done.