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

cmake fortran

parent 3a4b4e1d
......@@ -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()
......
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