How do I define a preprocessor variable through CMake? The equivalent code would be #define foo. 6 Answers 6 Tags: cc-preprocessorcmake