summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-23 12:37:44 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-23 12:37:44 (GMT)
commitdada2859b7d11615fd254f9b264aaafe5dffa607 (patch)
treecab2bf671850ec1b112c20a43cc0fb24cd46816b /bootstrap
parent452d3782512aa9d1ec04f3bcb039be0c410305a2 (diff)
downloadCMake-dada2859b7d11615fd254f9b264aaafe5dffa607.zip
CMake-dada2859b7d11615fd254f9b264aaafe5dffa607.tar.gz
CMake-dada2859b7d11615fd254f9b264aaafe5dffa607.tar.bz2
ENH: Adding forced settings for prefix, docdir, mandir, and datadir.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap21
1 files changed, 8 insertions, 13 deletions
diff --git a/bootstrap b/bootstrap
index d0ee9fa..6a5ea7e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -649,12 +649,17 @@ for a in ${KWSYS_CXX_SOURCES}; do
echo " ${cmake_cxx_compiler} ${cmake_cxx_flags} -DKWSYS_NAMESPACE=cmsys -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
done
-# Write prefix to Bootstrap.cmk/InitialCacheFlags.cmake
+# Write our default settings to Bootstrap.cmk/InitialCacheFlags.cmake.
cat > "${cmake_bootstrap_dir}/InitialCacheFlags.cmake" <<EOF
# Generated by ${cmake_source_dir}/bootstrap
+# Default cmake settings. These may be overridden any settings below.
+SET (CMAKE_INSTALL_PREFIX "${cmake_prefix_dir}" CACHE PATH "Install path prefix, prepended onto install directories." FORCE)
+SET (CMAKE_DOC_DIR "${cmake_doc_dir}" CACHE PATH "Install location for documentation (relative to prefix)." FORCE)
+SET (CMAKE_MAN_DIR "${cmake_man_dir}" CACHE PATH "Install location for man pages (relative to prefix)." FORCE)
+SET (CMAKE_DATA_DIR "${cmake_data_dir}" CACHE PATH "Install location for data (relative to prefix)." FORCE)
EOF
-# Start with user-specified settings. Handle relative-path case for
+# Add user-specified settings. Handle relative-path case for
# specification of cmake_init_file.
(
cd "${cmake_binary_dir}"
@@ -663,16 +668,6 @@ if [ -f "${cmake_init_file}" ]; then
fi
)
-# Add our default settings.
-cat >> "${cmake_bootstrap_dir}/InitialCacheFlags.cmake" <<EOF
-
-# Default cmake settings. These will not override any settings above.
-SET (CMAKE_INSTALL_PREFIX "${cmake_prefix_dir}" CACHE PATH "Install path prefix, prepended onto install directories.")
-SET (CMAKE_DOC_DIR "${cmake_doc_dir}" CACHE PATH "Install location for documentation (relative to prefix).")
-SET (CMAKE_MAN_DIR "${cmake_man_dir}" CACHE PATH "Install location for man pages (relative to prefix).")
-SET (CMAKE_DATA_DIR "${cmake_data_dir}" CACHE PATH "Install location for data (relative to prefix).")
-EOF
-
echo "---------------------------------------------"
# Run make to build bootstrap cmake
@@ -702,4 +697,4 @@ export MAKE
echo "---------------------------------------------"
# And we are done. Now just run make
-echo "CMake is configured. Now just run ${cmake_make_processor}."
+echo "CMake has bootstrapped. Now run ${cmake_make_processor}."