Clion "Cannot load CMake project: CMake executable is incorrect" issue

13,785

Solution 1

I just ran into this. Deleting the project's .idea directory and having clion recreate it fixed the issue for me.

Clion also reported that Bundled Cmake does not work in this enviroment

And when setting the actual path to the cmake binary it said it wasn't there when it was.

Solution 2

make a c executable project. go to file->settings

enter image description here

Share:
13,785
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    I ran into a problem while trying to use Clion. I imported a project, yet all off the headers and .cpp files are greyed out. The error shown is as in the title: "Cannot load CMake project: CMake executable is incorrect".Here is a screenshot of it. It's worth noting that I'm working with kubuntu and have downloaded all of the following: gcc, g++, make, cmake, gdb. I would love some help with solving this problem so I could start working with Clion. Thanks in advance.