Использовать make проектов на Fortran
This commit is contained in:
parent
6630d0c232
commit
b01bc7a52e
9
cmake.sh
9
cmake.sh
@ -86,6 +86,15 @@ CMAKE_ARGS=""
|
|||||||
|
|
||||||
[ ! -f "${SOURCE_DIR}/CMakeLists.txt" ] && { echo "Source directory does not contain CMakeLists.txt"; exit 4; }
|
[ ! -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 GENERATOR
|
||||||
export SOURCE_DIR
|
export SOURCE_DIR
|
||||||
export BUILD_DIR
|
export BUILD_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user