CLion WSL trouble finding Ninja Generator
Environment: Windows 10, Clion 2019.3.2.
Hello, I was able to setup WSL for my windows PC with no problems and compile GCC,cmake etc inside the WSL and set them from Clion settings > toolchains.
My problem is that I also wanted to give the Ninja Generator feature a try, as the article states that WSL can use it as well :).
I've tried setting it up like usual (adding to windows path variable)but, that fails, and considering this is under windows. I do not quite understand how to get it to find the ninja executable. I always receive the error.
"CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool."
Any Ideas?
Please sign in to leave a comment.
Hi!
Do you have Ninja installed on the WSL instance (not on the Windows machine)? What CMake version is detected in File | Settings | Build, Execution, Deployment | Toolchains?
The cmake version is 3.16.2, I downloaded and compiled the sources inside the WSL (screenshot below. :) I know it says not supported, but it works completely fine or am I wrong? )
The make "usr/bin/make" is fine as well it just updates every single time i use the windows 10 snipping tool for the screenshot. (which is odd)
I installed ninja by compiling it as well with
Thank you Anna! your question "Do you have Ninja installed on the WSL instance (not on the Windows machine)?" made me think what if the ninja I compiled is not being found so i tried instead using 'sudo apt-get install ninja-build' and it worked fine thank you! ^_^!