In our project we use CMake with two different build targets: Debug and Release.
Clion does provide two extra build targets: RelWithDebInfo and MinSizeRel. Now, when Clion creates the CMake cache (for all 4, we only use 2) it fails, because we do not allow other build targets besides of debug or release.
Your first workaround is to use this on the main CMakeList.txt:
if(NOT ${CMAKE_BUILD_TYPE} MATCHES "Debug|Release")
return()
endif()
But is it possible to disable these two configuration from Clion by default?