Skip to content

math: Suffixes K and M may be used to scale a numeric constant

Daniel Franke requested to merge DerDan/cmake:math_suffix into master

The suffixes K and M may be used to scale a numeric constant by 1024 (K) or 1048576 (M).

For example:

math(EXPR value "2K") results in value is set to "2048"

math(EXPR value "3M") results in value is set to "3145728"

Merge request reports