Skip to content

Add CMake build directories commonly used by JetBrains CLion. - #4900

Open
anstropleuton wants to merge 1 commit into
github:mainfrom
anstropleuton:main
Open

Add CMake build directories commonly used by JetBrains CLion.#4900
anstropleuton wants to merge 1 commit into
github:mainfrom
anstropleuton:main

Conversation

@anstropleuton

Copy link
Copy Markdown

Link to the application or project's homepage

https://www.jetbrains.com/clion/

Reasons for making this change

The default build directory for CMake based projects opened from CLion without CMakePresets.json or already configured CMake project build directory will default to:

  • cmake-build-debug
  • cmake-build-release
  • cmake-build-relwithdebinfo
  • cmake-build-minsizerel
  • cmake-build-default (when adding more than 4 profiles of different build types already exists)
JetBrains Settings window showing Build, Execution, Deployment > CMake page with a profile selected and Build directory field is empty, showing the default build directory used by JetBrains CLion

This defers from the regular build directory that is conventionally used for CMake configuration output directory.

Links to documentation supporting these rule changes

https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#cmake-buildtypes

Notice the Build directory field that specifies the location of build results. The default folders are cmake-build-debug for Debug profiles and cmake-build-release for Release profiles. You can always set other locations of your choice.

Merge and Approval Steps

@anstropleuton
anstropleuton requested a review from a team as a code owner August 25, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant