Commit 655f5666 authored by Kim, Jungwon's avatar Kim, Jungwon
Browse files

cmake fortran

parent 3a4b4e1d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -19,10 +19,15 @@ MESSAGE (STATUS "MPI_C_COMPILER ${MPI_C_COMPILER}")
MESSAGE (STATUS "MPI_Fortran_COMPILER ${MPI_Fortran_COMPILER}")

if ("${MPI_C_COMPILER}" STREQUAL "MPI_C_COMPILER-NOTFOUND")
    MESSAGE (STATUS "NO COMPILE WITH ${SPACK_CC}")
    set(CMAKE_C_COMPILER "${SPACK_CC}")
else()
    MESSAGE (STATUS "YES COMPILE WITH ${SPACK_CC}")
    set(CMAKE_C_COMPILER "${MPI_C_COMPILER}")
endif()

MESSAGE (STATUS "COMPILE WITH CMAKE_C_COMPILER ${CMAKE_C_COMPILER}")

if ("${MPI_CXX_COMPILER}" STREQUAL "MPI_CXX_COMPILER-NOTFOUND")
    set(CMAKE_C_COMPILER "${SPACK_CXX}")
else()