Y
Hacker News
new
|
ask
|
show
|
jobs
by
snnn
811 days ago
A cmake option only has two values: ON or OFF. There is no unset. Because it is a boolean.
See:
https://cmake.org/cmake/help/latest/command/option.html
2 comments
account42
805 days ago
This is not actually true, you can check if variables have been defined in CMake.
link
xorcist
811 days ago
Right, but the boolean is set by an autoconf script, is it not?
link