Skip to content

Commit 39421c4

Browse files
authored
Merge pull request #304 from sourceryinstitute/vehre/cmakeincludefix
Fix copy paste error: s/CheckCSourceCompiles/CheckFortranSourceCompiles/
2 parents d88bb3b + f74d298 commit 39421c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ set(OLD_INCLUDES ${CMAKE_REQUIRED_INCLUDES})
189189
set(CMAKE_REQUIRED_INCLUDES ${MPI_Fortran_INCLUDE_PATH})
190190
set(OLD_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
191191
set(CMAKE_REQUIRED_LIBRARIES ${MPI_Fortran_LIBRARIES})
192-
include (CheckCSourceCompiles)
192+
include (CheckFortranSourceCompiles)
193193
CHECK_Fortran_SOURCE_COMPILES("
194194
program mpi_hello
195195
use mpi
@@ -221,7 +221,7 @@ set(OLD_INCLUDES ${CMAKE_REQUIRED_INCLUDES})
221221
set(CMAKE_REQUIRED_INCLUDES ${MPI_Fortran_INCLUDE_PATH})
222222
set(OLD_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
223223
set(CMAKE_REQUIRED_LIBRARIES ${MPI_Fortran_LIBRARIES})
224-
include (CheckCSourceCompiles)
224+
include (CheckFortranSourceCompiles)
225225
CHECK_Fortran_SOURCE_COMPILES("
226226
program mpi_hello
227227
implicit none

0 commit comments

Comments
 (0)