For some reason it asks me if I want a debug or release kind of project when I create it, so I can't just switch between those 2 in one project. Do need to have 2 separate projects for debug and release?
Asked
Active
Viewed 209 times
1 Answers
1
This stems from the way how CMake works (to be precise, how CMake works with Makefile generator): it requires separate build directory for each build type.
I'm not sure what you mean by "having 2 separate projects", but intended way to do this is to select Project -> Open Configuration...
menu for your project, go to CMake
tab, and then click +
button to add another build dir. Then you configure new build dir with the build type you want.

arrowd
- 33,231
- 8
- 79
- 110
-
Also have a look at this similar post: http://stackoverflow.com/questions/15064715/kdevelop-with-cmake-project-how-to-manage-debug-and-release-builds – kfunk Nov 29 '16 at 10:48