diff options
author | jjYBdx4IL <jjYBdx4IL@github.com> | 2020-03-16 17:46:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-17 11:20:09 (GMT) |
commit | 2ec6fbcb9b267faeba7ceeed6e220fd05a729288 (patch) | |
tree | 4ef74256dbcbdc1ba6254683e9ea5d3311426c58 /bootstrap | |
parent | 6f4b1ba96d724cbbc1642a7beb6ae9ec2b51d3bc (diff) | |
download | CMake-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-x | bootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" } |