Skip to content

Instantly share code, notes, and snippets.

@claremacrae
Last active January 18, 2020 12:55
Show Gist options
  • Save claremacrae/1b45129dd991dbe3f252206c12cf2070 to your computer and use it in GitHub Desktop.
Save claremacrae/1b45129dd991dbe3f252206c12cf2070 to your computer and use it in GitHub Desktop.
<component name="CMakeSettings" AUTO_RELOAD="true">
<configurations>
<configuration PROFILE_NAME="Debug-g++-9-brew" CONFIG_NAME="Debug" TOOLCHAIN_NAME="g++-9-brew" GENERATION_DIR="cmake-build-spaces/cmake-build-debug-gcc9-brew" />
<configuration PROFILE_NAME="Debug-g++-9-brew Ninja Unity" CONFIG_NAME="Debug" TOOLCHAIN_NAME="g++-9-brew" GENERATION_OPTIONS="-G Ninja -DCMAKE_UNITY_BUILD=yes" GENERATION_DIR="cmake-build-spaces/cmake-build-debug-gcc9-brew-ninja-unity" />
<configuration PROFILE_NAME="Debug-clang++-mp-9.0" CONFIG_NAME="Debug" TOOLCHAIN_NAME="clang++-mp-9.0" GENERATION_DIR="cmake-build-spaces/cmake-build-debug-clang-mp-90" />
<configuration PROFILE_NAME="Debug-clang++-mp-9.0 Ninja Unity" CONFIG_NAME="Debug" TOOLCHAIN_NAME="clang++-mp-9.0" GENERATION_OPTIONS="-G Ninja -DCMAKE_UNITY_BUILD=yes" GENERATION_DIR="cmake-build-spaces/cmake-build-debug-clang-mp-90-ninja-unity" />
<configuration PROFILE_NAME="Debug-xcode" CONFIG_NAME="Debug" GENERATION_DIR="cmake-build-spaces/cmake-build-debug-xcode" />
<configuration PROFILE_NAME="Debug-xcode Ninja Unity" CONFIG_NAME="Debug" TOOLCHAIN_NAME="Default" GENERATION_OPTIONS="-G Ninja -DCMAKE_UNITY_BUILD=yes" GENERATION_DIR="cmake-build-spaces/cmake-build-debug-xcode-ninja-unity" />
<configuration PROFILE_NAME="Release-xcode" CONFIG_NAME="Release" GENERATION_DIR="cmake-build-spaces/cmake-build-release-xcode" />
<configuration PROFILE_NAME="Release-xcode Ninja Unity" CONFIG_NAME="Release" GENERATION_OPTIONS="-G Ninja -DCMAKE_UNITY_BUILD=yes" GENERATION_DIR="cmake-build-spaces/cmake-build-release-xcode-ninja-unity" />
</configurations>
</component>
@claremacrae
Copy link
Author

claremacrae commented Jan 17, 2020

My CLion preferences for putting all my chosen builds into a cmake-build-spaces sub-directory.

Screenshot 2020-01-18 at 12 52 20

As well as being able to collapse down all the builds, it has another nice bonus... in that you only have to "Mark as Excluded" the top level directory, and then all the build configs inherit that automatically... Doing it for all the separate folders was getting very old.

Important if you mimic this, make sure to remove special characters from the folder names in GENERATION_DIR, like space, +, . - and probably lower-case the names as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment