Compare commits

..

No commits in common. "b01bc7a52e091421be98f8bf670232402e17c3fe" and "9952d8626933a1003f90395a90946934dd254f48" have entirely different histories.

View File

@ -86,15 +86,6 @@ CMAKE_ARGS=""
[ ! -f "${SOURCE_DIR}/CMakeLists.txt" ] && { echo "Source directory does not contain CMakeLists.txt"; exit 4; }
if grep -i ^"project.*fortran" "${SOURCE_DIR}/CMakeLists.txt" >/dev/null 2>&1 ; then
if [ -x "$(command -v make)" ]; then
GENERATOR="Unix Makefiles"
else
echo "Projects with Fortran sources need Make to build"
exit 5
fi
fi
export GENERATOR
export SOURCE_DIR
export BUILD_DIR
@ -139,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 > "${GEN_DIR}/Makefile" <<EOF
cat > Makefile <<EOF
.PHONY: build
%:
@ninja \$@