I'm trying to make _DEBUG defined based on wheter I have the "build_debug" target on or not.
I've added this to the CMakeLists.txt file:
if (TARGET build_debug)
But the IDE doesn't seem to understand that _DEBUG is defined (things are still greyed out inside #ifdef _DEBUG)
How can I make the IDE understand this?