endif — CMake 4.0.1 Documentation (original) (raw)

Ends a list of commands in an if block.

endif([])

See the if() command.

The optional <condition> argument is supported for backward compatibility only. If used it must be a verbatim repeat of the argument of the openingif clause.