Open npuichigo opened 1 year ago
For example, I set conan to wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan, but it failed to run cmake.
wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan
C:\Windows\system32\wsl.exe --distribution Ubuntu --exec /bin/bash -c "/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake '-DCONAN_COMMAND=\\wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan' -G 'CodeBlocks - Unix Makefiles' -S /mnt/d/Codes/cpp/playground -B /mnt/d/Codes/cpp/playground/cmake-build-debug-wsl" CMake Error at conan_provider.cmake:325 (message): CMake-Conan: Error when trying to run Conan Call Stack (most recent call first): conan_provider.cmake:358 (conan_get_version) CMakeLists.txt:6 (find_package)
Hi, Please look at my reply Here You need to provide the path as-if it is within linux already, hope it helps.
Thanks for the answer, very useful!
For example, I set conan to
wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan
, but it failed to run cmake.