set variable cmake code example
Example 1: set cmake variable commandline
// To set cmake cache variables from command line
cmake -D<VAR_NAME>=<VAR_VALUE>
// Example
cmake -DUSE_CURL=True
Example 2: cmake var
set(<variable> <value>)
// To set cmake cache variables from command line
cmake -D<VAR_NAME>=<VAR_VALUE>
// Example
cmake -DUSE_CURL=True
set(<variable> <value>)