In a C++ file, I have a code like this:
#if ACTIVATE # pragma message( \"Activated\" ) #else # pragma message( \"Not Activated\") #endif
I
I think you want:
/p:DefineConstants=ACTIVATE