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