Skip to content

Commit f74d298

Browse files
committed
Include CheckFortranSourceCompiles where it is needed.
The former version was including CheckCSourceCompiles instead of the Fortran version. This in principle does not matter, because CheckFortranSourceCompile is included already. For clarity nevertheless this should be made consistent.
1 parent d88bb3b commit f74d298

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)