You should use the Debug build type already defined in CMake instead of a custom and likely incomplete build type: http://stackoverflow.com/questions/7724569/debug-vs-release-in-cmake