Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 5729  / 3 Years ago, tue, september 14, 2021, 10:54:50

I've recently freshly installed Ubuntu 20.04, and VSCode, meant for c++. I added the C/C++, CMake and CMake Tools extensions. Then I cloned one of my old github repos for testing and tried to Cmake:configure from the command pallete, but I got this error.


Bad CMake executable "/snap/bin/cmake". Is it installed or settings contain the correct path (cmake.cmakePath)?

I've looked through the CMake tools extension github repo for answers, and it appears to be some kind of an issue regarding snaps? I'm not that sure what exactly they're talking about, but I got that its a bug in CMake Tools, however I didnt find a solution for this. Can anyone help me out?


More From » compiling

 Answers
6

You have to remove Snap'ed cmake by


snap remove cmake

and install deb-packaged version by


sudo apt-get update
sudo apt-get install cmake

sudo apt-add-repository universe
sudo apt-get install cmake-extras

and then restart VSCode.


[#1315] Wednesday, September 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
whipstder

Total Points: 189
Total Questions: 110
Total Answers: 99

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
whipstder questions
Wed, Nov 9, 22, 09:45, 2 Years ago
Sun, May 28, 23, 03:52, 1 Year ago
Sat, Jul 17, 21, 07:10, 3 Years ago
Thu, Sep 2, 21, 07:15, 3 Years ago
;