summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-26 14:29:20 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-26 14:29:20 (GMT)
commit40df0d653659fe3403bbeb5e3251f8cea72926fd (patch)
tree18aab05eead778081dfcd1f23036da761ea4c0f6 /bootstrap
parentfc15fe75c5500a1a9f1e9756ee995a9de92549f2 (diff)
parent1093deebd0bd561f06419b84133620e9473b17e4 (diff)
downloadCMake-40df0d653659fe3403bbeb5e3251f8cea72926fd.zip
CMake-40df0d653659fe3403bbeb5e3251f8cea72926fd.tar.gz
CMake-40df0d653659fe3403bbeb5e3251f8cea72926fd.tar.bz2
Merge topic 'less-versioned-installs'
1093dee Shorten CMake version used in install destinations
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap8
1 files changed, 7 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 2e455d7..2d44d67 100755
--- a/bootstrap
+++ b/bootstrap
@@ -28,7 +28,13 @@ cmake_install_dest_default()
{
cat "${cmake_source_dir}/Source/CMakeInstallDestinations.cmake" | sed -n '
/^ *set(CMAKE_'"${1}"'_DIR_DEFAULT.*) # '"${2}"'$/ {
- s/^ *set(CMAKE_'"${1}"'_DIR_DEFAULT *"\([^"]*\)").*$/\1/;p;q;}
+ s/^ *set(CMAKE_'"${1}"'_DIR_DEFAULT *"\([^"]*\)").*$/\1/
+ s/${CMake_VERSION_MAJOR}/'"${cmake_version_major}"'/
+ s/${CMake_VERSION_MINOR}/'"${cmake_version_minor}"'/
+ s/${CMake_VERSION_PATCH}/'"${cmake_version_patch}"'/
+ p
+ q
+}
'
}