Skip to content

Commit 1f4ff6d

Browse files
committed
Merge pull request #156 from sourceryinstitute/small-build-fixes
Fix small CMake introspection issue & exit status problems in install.sh
2 parents 3a9bfd2 + 10ed01b commit 1f4ff6d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ else()
8888
endif()
8989

9090
if(gfortran_compiler)
91-
set(CMAKE_REQUIRED_FLAGS "-fcoarray=single")
91+
set(CMAKE_REQUIRED_FLAGS "-fcoarray=single -ffree-form")
9292
endif()
9393
include(CheckFortranSourceCompiles)
9494
CHECK_Fortran_SOURCE_COMPILES("

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
#
5555
# __________ Process command-line arguments and environment variables _____________
5656

57+
# Make sure we really exit with correct status when piping function output
58+
set -o pipefail
59+
5760
this_script=`basename $0`
5861

5962
# Interpret the first command-line argument, if present, as the OpenCoarrays installation path.

0 commit comments

Comments
 (0)