The constructor of class cmake requires an enum Role that controls which commands are registered.
class cmake
enum Role