I've been trying to figure out how to get CLion to only run certain bits of code if I'm debugging. I tried setting debug flags for cmake in my CMakeLists.txt, but that doesn't seem to work. I tried setting it in CMakeLists.txt without luck
I have :
But, don't think that's right. I currently have a macro defined that I can change manually for debugging, but that isn't ideal. How would I go about setting a debug flag correctly on Linux?