mirror of https://github.com/lammps/lammps.git
move check for Fortran Compiler validity
This commit is contained in:
parent
446cc46bbd
commit
56304fe939
|
@ -6,14 +6,14 @@ endif()
|
|||
|
||||
include(CheckLanguage)
|
||||
check_language(Fortran)
|
||||
if(NOT CMAKE_Fortran_COMPILER_ID)
|
||||
message(STATUS "Skipping Tests for the LAMMPS Fortran Module: cannot identify Fortran compiler")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(CMAKE_Fortran_COMPILER)
|
||||
enable_language(C)
|
||||
enable_language(Fortran)
|
||||
if(NOT CMAKE_Fortran_COMPILER_ID)
|
||||
message(STATUS "Skipping Tests for the LAMMPS Fortran Module: cannot identify Fortran compiler")
|
||||
return()
|
||||
endif()
|
||||
get_filename_component(LAMMPS_FORTRAN_MODULE ${LAMMPS_SOURCE_DIR}/../fortran/lammps.f90 ABSOLUTE)
|
||||
if(BUILD_MPI)
|
||||
find_package(MPI REQUIRED)
|
||||
|
|
Loading…
Reference in New Issue