Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run conan when setting the path to wsl conan #165

Open
npuichigo opened this issue Sep 11, 2023 · 2 comments
Open

Failed to run conan when setting the path to wsl conan #165

npuichigo opened this issue Sep 11, 2023 · 2 comments

Comments

@npuichigo
Copy link

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)
@Daniel599
Copy link

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

@rturrado
Copy link

Thanks for the answer, very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants