summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorjjYBdx4IL <jjYBdx4IL@github.com>2020-03-16 17:46:16 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-17 11:20:09 (GMT)
commit2ec6fbcb9b267faeba7ceeed6e220fd05a729288 (patch)
tree4ef74256dbcbdc1ba6254683e9ea5d3311426c58 /bootstrap
parent6f4b1ba96d724cbbc1642a7beb6ae9ec2b51d3bc (diff)
downloadCMake-2ec6fbcb9b267faeba7ceeed6e220fd05a729288.zip
CMake-2ec6fbcb9b267faeba7ceeed6e220fd05a729288.tar.gz
CMake-2ec6fbcb9b267faeba7ceeed6e220fd05a729288.tar.bz2
bootstrap: Tolerate trailing content in CMakeVersion.cmake components
On CYGWIN, tolerate DOS linefeeds in `Source/CMakeVersion.cmake`.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index d529f3b..66dc861 100755
--- a/bootstrap
+++ b/bootstrap
@@ -17,7 +17,7 @@ cmake_extract_standard_flags()
cmake_version_component()
{
sed -n "
-/^set(CMake_VERSION_${1}/ {s/set(CMake_VERSION_${1} *\([0-9]*\))/\1/;p;}
+/^set(CMake_VERSION_${1}/ {s/set(CMake_VERSION_${1} *\([0-9]*\)).*/\1/;p;}
" "${cmake_source_dir}/Source/CMakeVersion.cmake"
}