Define preprocessor macro through CMake? by IT Nursery How do I define a preprocessor variable through CMake? The equivalent code would be #define foo. 6 Answers 6