Build rules are defined in CMakeCInformation.cmake and CMakeCXXInformation.cmake. Essentially, they're a template for the command CMake uses to invoke the compiler or linker to do different tasks.
Rules for C++ sources:
and the equivalents for C sources:
You can override the variables manually, e.g. replacing some flags in the linker command, but you can't change the value of the variables in sharp braces. Usually you don't have to change these rules, only in rare cases. You should only do this if you know what you are doing and there is no other way.
There are a couple dozen different less-then-greater-then tags that you can put in build rules. From examining the source code the following style names exist:
Please note you can set these properties globally using SET or LIST, or for a single target using SET_TARGET_PROPERTIES.
This page was initially populated by conversion from its original location in another wiki.