Content #
Three category:
- normal (use ${})
- cache (use ${} or $CACHE{})
- environment (use $ENV{})
Key facts #
- Variable names are case-sensitive.
- All variables are stored internally as strings.
- The basic variable manipulation commands are set() and unset(), but there are other commands that can affect variables, such as string() and list()
Manipulate environment variables #
set(ENV{CXX} "clang++")
unset(ENV(VERBOSE))