summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-11 19:53:14 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-11 19:53:14 (GMT)
commite1e8f27ff284a59b8e57e802a6c159940367c51e (patch)
treebf63e27bfdd62a31df94f27b848908b93209fbb9 /bootstrap
parent8e2f3582eb9cf75c78fbe8232cdacce2357f7efc (diff)
downloadCMake-e1e8f27ff284a59b8e57e802a6c159940367c51e.zip
CMake-e1e8f27ff284a59b8e57e802a6c159940367c51e.tar.gz
CMake-e1e8f27ff284a59b8e57e802a6c159940367c51e.tar.bz2
bootstrap: fix Bad substitution
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap37
1 files changed, 24 insertions, 13 deletions
diff --git a/bootstrap b/bootstrap
index 515e8be..876f53b 100755
--- a/bootstrap
+++ b/bootstrap
@@ -240,10 +240,6 @@ CMAKE_UNUSED_SOURCES="\
"
CMAKE_CXX_SOURCES="\
- LexerParser/cmCommandArgumentLexer \
- LexerParser/cmCommandArgumentParser \
- LexerParser/cmExprLexer \
- LexerParser/cmExprParser \
cmAddCustomCommandCommand \
cmAddCustomTargetCommand \
cmAddDefinitionsCommand \
@@ -416,9 +412,16 @@ if ${cmake_system_mingw}; then
cmGlobalMinGWMakefileGenerator"
fi
-CMAKE_C_SOURCES="\
- LexerParser/cmListFileLexer \
- "
+LexerParser_CXX_SOURCES="\
+ cmCommandArgumentLexer \
+ cmCommandArgumentParser \
+ cmExprLexer \
+ cmExprParser \
+"
+
+LexerParser_C_SOURCES="\
+ cmListFileLexer \
+"
if ${cmake_system_mingw}; then
KWSYS_C_SOURCES="\
@@ -810,11 +813,6 @@ if [ ! -d "cmsys" ]; then
cmake_error 4 "Cannot create directory ${cmake_bootstrap_dir}/cmsys"
fi
-[ -d "LexerParser" ] || mkdir "LexerParser"
-if [ ! -d "LexerParser" ]; then
- cmake_error 5 "Cannot create directory ${cmake_bootstrap_dir}/LexerParser"
-fi
-
# Delete all the bootstrap files
rm -f "${cmake_bootstrap_dir}/cmake_bootstrap.log"
rm -f "${cmake_bootstrap_dir}/cmConfigure.h${_tmp}"
@@ -1347,6 +1345,8 @@ cmake_compiler_settings_comment="/*
*
* Sources:
* ${CMAKE_CXX_SOURCES} ${CMAKE_C_SOURCES}
+ * LexerParser Sources:
+ * ${LexerParser_CXX_SOURCES} ${LexerParser_C_SOURCES}
* kwSys Sources:
* ${KWSYS_CXX_SOURCES} ${KWSYS_C_SOURCES}
*/
@@ -1408,7 +1408,7 @@ 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=""
-for a in ${CMAKE_CXX_SOURCES} ${CMAKE_C_SOURCES} ${KWSYS_CXX_SOURCES} ${KWSYS_C_SOURCES}; do
+for a in ${CMAKE_CXX_SOURCES} ${CMAKE_C_SOURCES} ${LexerParser_CXX_SOURCES} ${LexerParser_C_SOURCES} ${KWSYS_CXX_SOURCES} ${KWSYS_C_SOURCES}; do
objs="${objs} ${a}.o"
done
@@ -1459,6 +1459,17 @@ for a in ${CMAKE_C_SOURCES}; do
echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"
echo " ${cmake_c_compiler} ${cmake_c_flags} -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
done
+for a in ${LexerParser_CXX_SOURCES}; do
+ src=`cmake_escape "${cmake_source_dir}/Source/LexerParser/${a}.cxx"`
+ src_flags=`eval echo \\${cmake_cxx_flags_\${a}}`
+ echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"
+ echo " ${cmake_cxx_compiler} ${cmake_cxx_flags} ${src_flags} -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
+done
+for a in ${LexerParser_C_SOURCES}; do
+ src=`cmake_escape "${cmake_source_dir}/Source/LexerParser/${a}.c"`
+ echo "${a}.o : ${src} ${dep}" >> "${cmake_bootstrap_dir}/Makefile"
+ echo " ${cmake_c_compiler} ${cmake_c_flags} -c ${src} -o ${a}.o" >> "${cmake_bootstrap_dir}/Makefile"
+done
for a in ${KWSYS_C_SOURCES}; do
src=`cmake_escape "${cmake_source_dir}/Source/kwsys/${a}.c"`
src_flags=`eval echo \\${cmake_c_flags_\${a}}`