Use cmakes option command instead of set.