1
0

COMPILE_DEFINITIONS.rst 944 B

1234567891011121314151617181920
  1. COMPILE_DEFINITIONS
  2. -------------------
  3. Preprocessor definitions for compiling a directory's sources.
  4. The COMPILE_DEFINITIONS property may be set to a semicolon-separated
  5. list of preprocessor definitions using the syntax VAR or VAR=value.
  6. Function-style definitions are not supported. CMake will
  7. automatically escape the value correctly for the native build system
  8. (note that CMake language syntax may require escapes to specify some
  9. values). This property may be set on a per-configuration basis using
  10. the name COMPILE_DEFINITIONS_<CONFIG> where <CONFIG> is an upper-case
  11. name (ex. "COMPILE_DEFINITIONS_DEBUG"). This property will be
  12. initialized in each directory by its value in the directory's parent.
  13. CMake will automatically drop some definitions that are not supported
  14. by the native build tool. The VS6 IDE does not support definition
  15. values with spaces (but NMake does).
  16. .. include:: /include/COMPILE_DEFINITIONS_DISCLAIMER.txt