set(UNUSED_VARIABLE) # Warning should occur here set(UNUSED_VARIABLE "Usage") message(STATUS "${UNUSED_VARIABLE}")