[polly] 5109361 - [polly][CMake] Replace `elseif ()` with `else ()`
Owen Pan via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 31 14:53:08 PDT 2025
Author: Owen Pan
Date: 2025-08-31T14:53:01-07:00
New Revision: 5109361d4aeeb0227e86a7f016eb773d28dd9957
URL: https://github.com/llvm/llvm-project/commit/5109361d4aeeb0227e86a7f016eb773d28dd9957
DIFF: https://github.com/llvm/llvm-project/commit/5109361d4aeeb0227e86a7f016eb773d28dd9957.diff
LOG: [polly][CMake] Replace `elseif ()` with `else ()`
The no-argument elseif resulted in the warning below:
CMake Warning (dev) at polly/lib/External/CMakeLists.txt:30 (elseif):
ELSEIF called with no arguments, it will be skipped.
Added:
Modified:
polly/lib/External/CMakeLists.txt
Removed:
################################################################################
diff --git a/polly/lib/External/CMakeLists.txt b/polly/lib/External/CMakeLists.txt
index 5dd69b7199dc0..ab5cba93cdcfe 100644
--- a/polly/lib/External/CMakeLists.txt
+++ b/polly/lib/External/CMakeLists.txt
@@ -27,7 +27,7 @@ if (POLLY_BUNDLED_ISL)
# The source directory is preconfigured
file(READ "${ISL_SOURCE_DIR}/gitversion.h" GITVERSION_H)
string(REGEX REPLACE ".*\\\"([^\\\"]*)\\\".*" "\\1" ISL_GIT_HEAD_ID "${GITVERSION_H}")
- elseif ()
+ else ()
# Unknown revision
# TODO: We could look for a .git and get the revision from HEAD
set(ISL_GIT_HEAD_ID "UNKNOWN")
More information about the llvm-commits
mailing list