Commit 57f9b44b authored by Kim, Jungwon's avatar Kim, Jungwon

modify cmakelists.txt for mpi_fortran_compiler

parent a980defc
......@@ -6,9 +6,18 @@ set(PAPYRUS_VERSION_MAJOR 1)
set(PAPYRUS_VERSION_MINOR 0)
set(PAPYRUS_VERSION_PATCH 0)
set(PAPYRUS_USE_FORTRAN ON CACHE BOOL "Enable support for Fortran 90")
MESSAGE (STATUS "PAPYRUS_USE_FORTRAN ${PAPYRUS_USE_FORTRAN}")
if(PAPYRUS_USE_FORTRAN)
enable_language(Fortran)
endif()
find_package(MPI REQUIRED)
MESSAGE (STATUS "MPI_CXX_COMPILER ${MPI_CXX_COMPILER}")
MESSAGE (STATUS "MPI_C_COMPILER ${MPI_C_COMPILER}")
MESSAGE (STATUS "CMAKE_Fortran_COMPILER ${CMAKE_Fortran_COMPILER}")
if ("${MPI_C_COMPILER}" STREQUAL "MPI_C_COMPILER-NOTFOUND")
else()
set(CMAKE_C_COMPILER "${MPI_C_COMPILER}")
......@@ -17,17 +26,13 @@ if ("${MPI_CXX_COMPILER}" STREQUAL "MPI_CXX_COMPILER-NOTFOUND")
else()
set(CMAKE_CXX_COMPILER "${MPI_CXX_COMPILER}")
endif()
if ("${MPI_Fortran_COMPILER}" STREQUAL "MPI_Fortran_COMPILER-NOTFOUND")
else()
set(CMAKE_Fortran_COMPILER "${MPI_Fortran_COMPILER}")
endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(PAPYRUS_USE_FORTRAN ON CACHE BOOL "Enable support for Fortran 90")
MESSAGE (STATUS "PAPYRUS_USE_FORTRAN ${PAPYRUS_USE_FORTRAN}")
if(PAPYRUS_USE_FORTRAN)
enable_language(Fortran)
MESSAGE (STATUS "CMAKE_Fortran_COMPILER ${CMAKE_Fortran_COMPILER}")
endif()
include(CTest)
add_subdirectory(include)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment