Set the _DEBUG macro for CMake also.