[CMake] Portability of preprocessor defines

Nikos Chantziaras realnc at gmail.com
Wed Apr 6 07:22:17 EDT 2016


Hello.

It seems that everyone defines their preprocessor symbols like this:

   -DFOO

I actually prefer this:

   -D FOO

(With a space.)

Is this just as portable as the version without the space though? Would 
CMake remove the space if needed, and if not, would that ever cause issues?



More information about the CMake mailing list