diff options
author | Brad King <brad.king@kitware.com> | 2017-05-12 13:11:43 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-12 13:11:56 (GMT) |
commit | 9ab81c4a9b1ffde12663388975759bd757a4f825 (patch) | |
tree | 1d39b57fe51a9dbaad8eeb4f61d917c9b5c76a82 | |
parent | 91d987e15c3249f35bb1151a2a3b7e487c61f095 (diff) | |
parent | e1e8f27ff284a59b8e57e802a6c159940367c51e (diff) | |
download | CMake-9ab81c4a9b1ffde12663388975759bd757a4f825.zip CMake-9ab81c4a9b1ffde12663388975759bd757a4f825.tar.gz CMake-9ab81c4a9b1ffde12663388975759bd757a4f825.tar.bz2 |
Merge topic 'lexerparser-fix-bootstrap'
e1e8f27f bootstrap: fix Bad substitution
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !831
-rwxr-xr-x | bootstrap | 37 |
1 files changed, 24 insertions, 13 deletions
@@ -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}}` |