mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 21:28:23 -05:00
9db3116226
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block. This is no longer the preferred style.
Run the following shell code:
for c in else endif endforeach endfunction endmacro endwhile; do
echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
19 lines
978 B
CMake
19 lines
978 B
CMake
if(NOT "${VersionTestA_FIND_VERSION}" STREQUAL "1")
|
|
message(SEND_ERROR "VersionTestA_FIND_VERSION=${VersionTestA_FIND_VERSION} is not 1")
|
|
endif()
|
|
if(NOT "${VersionTestA_FIND_VERSION_MAJOR}" STREQUAL "1")
|
|
message(SEND_ERROR "VersionTestA_FIND_VERSION_MAJOR=${VersionTestA_FIND_VERSION_MAJOR} is not 1")
|
|
endif()
|
|
if(NOT "${VersionTestA_FIND_VERSION_MINOR}" STREQUAL "0")
|
|
message(SEND_ERROR "VersionTestA_FIND_VERSION_MINOR=${VersionTestA_FIND_VERSION_MINOR} is not 0")
|
|
endif()
|
|
if(NOT "${VersionTestA_FIND_VERSION_PATCH}" STREQUAL "0")
|
|
message(SEND_ERROR "VersionTestA_FIND_VERSION_PATCH=${VersionTestA_FIND_VERSION_PATCH} is not 0")
|
|
endif()
|
|
if(NOT "${VersionTestA_FIND_VERSION_TWEAK}" STREQUAL "0")
|
|
message(SEND_ERROR "VersionTestA_FIND_VERSION_TWEAK=${VersionTestA_FIND_VERSION_TWEAK} is not 0")
|
|
endif()
|
|
if(NOT "${VersionTestA_FIND_VERSION_COUNT}" STREQUAL "1")
|
|
message(SEND_ERROR "VersionTestA_FIND_VERSION_COUNT=${VersionTestA_FIND_VERSION_COUNT} is not 1")
|
|
endif()
|