conan-clion-plugin icon indicating copy to clipboard operation
conan-clion-plugin copied to clipboard

Failed to run conan when setting the path to wsl conan

Open npuichigo opened this issue 11 months ago • 2 comments

For example, I set conan to wsl$\Ubuntu\home\ichigo\miniconda3\envs\conan\bin\conan, but it failed to run cmake.

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)

npuichigo avatar Sep 11 '23 10:09 npuichigo

Hi, Please look at my reply Here You need to provide the path as-if it is within linux already, hope it helps.

Daniel599 avatar Oct 16 '23 17:10 Daniel599

Thanks for the answer, very useful!

rturrado avatar Mar 21 '24 18:03 rturrado