cmake: Add feature tests for warnings