summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-10 20:31:40 (GMT)
committerBrad King <brad.king@kitware.com>2014-02-10 20:31:40 (GMT)
commit28805109bcdea33933e889801a065fd1484b0547 (patch)
tree50a5f5c59e3fb0bba59b1507b55cb149b75872e2 /bootstrap
parenteaf703f16082fdd79983e32356aa20e64f94bd8b (diff)
downloadCMake-28805109bcdea33933e889801a065fd1484b0547.zip
CMake-28805109bcdea33933e889801a065fd1484b0547.tar.gz
CMake-28805109bcdea33933e889801a065fd1484b0547.tar.bz2
cmStandardIncludes: Include cmIML/INT.h for portable integer types
Also teach the bootstrap script to configure the needed headers.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index c0a3e3b..d654cb9 100755
--- a/bootstrap
+++ b/bootstrap
@@ -357,6 +357,11 @@ KWSYS_IOS_FILES="
iostream \
sstream"
+KWIML_FILES='
+ ABI.h
+ INT.h
+'
+
# Display CMake bootstrap usage
cmake_usage()
{
@@ -705,6 +710,11 @@ for a in stl ios; do
fi
done
+[ -d "cmIML" ] || mkdir "cmIML"
+if [ ! -d "cmIML" ]; then
+ cmake_error 12 "Cannot create directory ${cmake_bootstrap_dir}/cmIML"
+fi
+
# Delete all the bootstrap files
rm -f "${cmake_bootstrap_dir}/cmake_bootstrap.log"
rm -f "${cmake_bootstrap_dir}/cmConfigure.h${_tmp}"
@@ -1500,6 +1510,11 @@ for a in string vector set map algorithm; do
"${cmake_bootstrap_dir}/cmsys/stl/${a}" KWSYS_STL_HEADER ${a}
done
+for a in ${KWIML_FILES}; do
+ cmake_replace_string "${cmake_source_dir}/Utilities/KWIML/${a}.in" \
+ "${cmake_bootstrap_dir}/cmIML/${a}" KWIML cmIML
+done
+
# Generate Makefile
dep="cmConfigure.h cmsys/*.hxx cmsys/*.h `cmake_escape \"${cmake_source_dir}\"`/Source/*.h"
objs=""