diff options
author | Brad King <brad.king@kitware.com> | 2015-12-18 14:57:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-12-18 15:02:28 (GMT) |
commit | a5dd0c9d427d66f7e361b0aa714a0a41b65ae4f0 (patch) | |
tree | 2b9b3b773b966be74081982c51d7684f93f49083 /bootstrap | |
parent | 036b6ef7c47ccb19f291d2f36df37aaf885b4ba8 (diff) | |
download | CMake-a5dd0c9d427d66f7e361b0aa714a0a41b65ae4f0.zip CMake-a5dd0c9d427d66f7e361b0aa714a0a41b65ae4f0.tar.gz CMake-a5dd0c9d427d66f7e361b0aa714a0a41b65ae4f0.tar.bz2 |
Add option to use a system-installed KWIML
Do not activate it with the general use-system-libs options for now
because KWIML is not commonly distributed or available.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -450,6 +450,18 @@ cmake_error() exit ${res} } +cmake_generate_file () +{ + OUTFILE="$1" + CONTENT="$2" + echo "$CONTENT" > "$OUTFILE.tmp" + if "${_diff}" "$OUTFILE.tmp" "$OUTFILE" > /dev/null 2> /dev/null ; then + rm -f "$OUTFILE.tmp" + else + mv -f "$OUTFILE.tmp" "$OUTFILE" + fi +} + # Replace KWSYS_NAMESPACE with cmsys cmake_replace_string () { @@ -1270,6 +1282,8 @@ for a in ${KWSYS_FILES}; do "${cmake_bootstrap_dir}/cmsys/${a}" KWSYS_NAMESPACE cmsys done +cmake_generate_file "${cmake_bootstrap_dir}/cmThirdParty.h" "" + # Generate Makefile dep="cmConfigure.h cmsys/*.hxx cmsys/*.h `cmake_escape \"${cmake_source_dir}\"`/Source/*.h" objs="" |