Does KDevelop support switching between debug and release builds for CMake projects?
Sure, click Open configuration and then + at the top of window. This would allow you to add another build directory and you will be able to switch between them.