summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-08 22:27:08 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-08 22:27:08 (GMT)
commit636f1587b565e59891c805b76f766f9690fdc0ca (patch)
tree8f94cc2f28ee676805603f8760cc3a799422b921
parent4c765d2797412b81b79d0b58604218cd15ed305b (diff)
downloadCMake-636f1587b565e59891c805b76f766f9690fdc0ca.zip
CMake-636f1587b565e59891c805b76f766f9690fdc0ca.tar.gz
CMake-636f1587b565e59891c805b76f766f9690fdc0ca.tar.bz2
BUG: Fix for spaces in the path when constructing cmBootstrapCommands dependencies.
-rwxr-xr-xbootstrap5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 377e6ed..e90c889 100755
--- a/bootstrap
+++ b/bootstrap
@@ -878,7 +878,8 @@ for a in ${CMAKE_CXX_SOURCES} ${CMAKE_C_SOURCES} ${KWSYS_CXX_SOURCES} ${KWSYS_C_
done
# Generate dependencies for cmBootstrapCommands.cxx
-cmBootstrapCommandsDeps=`grep "#include.*cm[^.]*.cxx" ${cmake_source_dir}/Source/cmBootstrapCommands.cxx | sed "s/.* \"\(.*\)\"/\1/" | awk "{ print \"${cmake_source_dir}/Source/\" \\$1}"`
+cmBootstrapCommandsDepsDir=`cmake_escape "${cmake_source_dir}/Source/"`
+cmBootstrapCommandsDeps=`grep "#include.*cm[^.]*.cxx" "${cmake_source_dir}/Source/cmBootstrapCommands.cxx" | sed "s/.* \"\(.*\)\"/\1/" | awk "{ print \"${cmBootstrapCommandsDepsDir}\" \\$1}"`
cmBootstrapCommandsDeps=`echo $cmBootstrapCommandsDeps`
if [ "x${cmake_ansi_cxx_flags}" != "x" ]; then
@@ -904,7 +905,7 @@ for a in ${CMAKE_CXX_SOURCES}; do
echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"
echo " ${cmake_cxx_compiler} ${cmake_cxx_flags} -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
done
-echo "cmBootstrapCommands.o: $cmBootstrapCommandsDeps" >> "${cmake_bootstrap_dir}/Makefile"
+echo "cmBootstrapCommands.o : $cmBootstrapCommandsDeps" >> "${cmake_bootstrap_dir}/Makefile"
for a in ${CMAKE_C_SOURCES}; do
src=`cmake_escape "${cmake_source_dir}/Source/${a}.c"`
echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"