Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kim, Jungwon
papyrus
Commits
3a4b4e1d
Commit
3a4b4e1d
authored
May 11, 2018
by
Kim, Jungwon
Browse files
spack_cc in cmake
parent
0e039afa
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
3a4b4e1d
...
...
@@ -16,17 +16,20 @@ 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
}
"
)
MESSAGE
(
STATUS
"
MPI
_Fortran_COMPILER
${
MPI
_Fortran_COMPILER
}
"
)
if
(
"
${
MPI_C_COMPILER
}
"
STREQUAL
"MPI_C_COMPILER-NOTFOUND"
)
set
(
CMAKE_C_COMPILER
"
${
SPACK_CC
}
"
)
else
()
set
(
CMAKE_C_COMPILER
"
${
MPI_C_COMPILER
}
"
)
endif
()
if
(
"
${
MPI_CXX_COMPILER
}
"
STREQUAL
"MPI_CXX_COMPILER-NOTFOUND"
)
set
(
CMAKE_C_COMPILER
"
${
SPACK_CXX
}
"
)
else
()
set
(
CMAKE_CXX_COMPILER
"
${
MPI_CXX_COMPILER
}
"
)
endif
()
if
(
"
${
MPI_Fortran_COMPILER
}
"
STREQUAL
"MPI_Fortran_COMPILER-NOTFOUND"
)
set
(
CMAKE_Fortran_COMPILER
"
${
SPACK_FC
}
"
)
else
()
set
(
CMAKE_Fortran_COMPILER
"
${
MPI_Fortran_COMPILER
}
"
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment