Closed navono closed 3 years ago
You should not be adding the conanfile.txt. After enabling the Conan option, you need to edit the Conan.cmake and add the packages as follows:
set(${PROJECT_NAME}_CONAN_REQUIRES "cpprestsdk/2.10.18" "boost/1.76.0" "libuv/1.41.0" "spdlog/1.8.5" "rapidjson/cci.20200410" "nlohmann_json/3.9.1" "fmt/7.1.3" "date/3.0.1" "tbb/2020.3" "catch2/2.13.6")
After using conan for a while, I think conanfile is easier to manage dependencies, so close.
Describe the bug Enable
CONAN
option inStandardSettings.cmake
, then addconanfile.txt
:To Reproduce Steps to reproduce the behavior:
Reload
in CMake tabcmake-build-debug
directoryDisable
Conan
option, addconan
integrat command and link library in rootCMakeLists.txt
like this:reload cmake, and
make
, it works.Expected behavior
make
successful.Screenshots
Desktop (please complete the following information):
Additional context Clion connect WSL2 environment.