# CMake error is different than CMake version

**URL:** https://discourse.cmake.org/t/cmake-error-is-different-than-cmake-version/5503
**Category:** Usage
**Created:** [April 21, 2022, 12:17am UTC](https://discourse.cmake.org/t/cmake-error-is-different-than-cmake-version/5503 "2022-04-21T00:17:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![clinton2022](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@clinton2022](https://discourse.cmake.org/u/clinton2022)
#### Post date: [April 21, 2022, 12:17am UTC](https://discourse.cmake.org/t/cmake-error-is-different-than-cmake-version/5503/1 "2022-04-21T00:17:53Z")

</div>

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 ([kitware.com/cmake](http://kitware.com/cmake)).

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.

---

<div class="post-metadata">

### Author: ![fenrir](https://discourse.cmake.org/user_avatar/discourse.cmake.org/fenrir/32/734_2.png) [@fenrir](https://discourse.cmake.org/u/fenrir)
#### Post date: [April 21, 2022, 10:15am UTC](https://discourse.cmake.org/t/cmake-error-is-different-than-cmake-version/5503/2 "2022-04-21T10:15:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![clinton2022](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@clinton2022](https://discourse.cmake.org/u/clinton2022)
#### Post date: [April 21, 2022, 4:29pm UTC](https://discourse.cmake.org/t/cmake-error-is-different-than-cmake-version/5503/3 "2022-04-21T16:29:10Z")

</div>

(EDIT): Finally found it.

Settings/Build, Execution, Deployment \> Toolchains

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

Thank you for the help
