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

This is not actually true, you can check if variables have been defined in CMake.
Right, but the boolean is set by an autoconf script, is it not?