Правка пути к создаваемому Makefile

This commit is contained in:
Andrei Astafev 2019-11-29 11:34:27 +03:00
parent 9952d86269
commit 6630d0c232

View File

@ -130,7 +130,7 @@ generate_configuration() {
cmake -B"${GEN_DIR}" -H"${SOURCE_DIR}" -G "${GENERATOR}" -DCMAKE_INSTALL_PREFIX="${OUTPUT_DIR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" ${CMAKE_ARGS}
if [ "x$GENERATOR" == "xNinja" ]; then
# Generate fake Makefile, so make can run ninja build
cat > Makefile <<EOF
cat > "${GEN_DIR}/Makefile" <<EOF
.PHONY: build
%:
@ninja \$@