[script] avoid build crush due to chdir in Ubuntu 22.04

This commit is contained in:
tangxifan 2023-01-31 11:59:01 -08:00
parent 1fea2394d8
commit c244dca616
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ checkout:
prebuild:
# Run cmake to generate Makefile under the build directory, before compilation
@mkdir -p ${BUILD_DIR}
echo "cd ${BUILD_DIR} && ${CMAKE_COMMAND} ${CMAKE_FLAGS} ${SOURCE_DIR}"
@mkdir -p ${BUILD_DIR} && \
echo "cd ${BUILD_DIR} && ${CMAKE_COMMAND} ${CMAKE_FLAGS} ${SOURCE_DIR}" && \
cd ${BUILD_DIR} && ${CMAKE_COMMAND} ${CMAKE_FLAGS} ${SOURCE_DIR}
compile: prebuild