CMake error is different than CMake version

Now I have the same old problem in CLion:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.23.1 or higher is required. You are running version 3.21.1

ā€“ Configuring incomplete, errors occurred!

I installed 3.23.1 and the system says I have 3.23.1
I am NOT running 3.21.1 !!!
There must be a bug somewhere
cmake --version
cmake version 3.23.1

CMake suite maintained and supported by Kitware (

I had this problem at first with CMake and Fedora. Query says I have a higher version in Fedora than the one running in a code editor, whether VS Code or CLion. Same thing happens in other software.

I am not sure about other editors but in CLion you can choose which cmake executable is being used. By default CLion uses bundled CMake. You may want to change that in the settings.

1 Like

(EDIT): Finally found it.

Settings/Build, Execution, Deployment > Toolchains

I would NEVER expect executable setting to be in Toolchains. Mr. Spock: ILLOGICAL

Thank you for the help