Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by snnn

3 years 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

snnn

Reply

account42  3 years ago

This is not actually true, you can check if variables have been defined in CMake.

xorcist  3 years ago

Right, but the boolean is set by an autoconf script, is it not?

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities