Использовать make проектов на Fortran

This commit is contained in:
Andrei Astafev 2020-03-25 10:23:32 +03:00
parent 6630d0c232
commit b01bc7a52e

View File

@ -86,6 +86,15 @@ 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