Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kim, Jungwon
papyrus
Commits
298f4f87
Commit
298f4f87
authored
May 11, 2018
by
Kim, Jungwon
Browse files
cmake fortran using env2
parent
fbfa4dc1
Changes
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
298f4f87
...
...
@@ -20,16 +20,16 @@ MESSAGE (STATUS "MPI_Fortran_COMPILER ${MPI_Fortran_COMPILER}")
if
(
"
${
MPI_C_COMPILER
}
"
STREQUAL
"MPI_C_COMPILER-NOTFOUND"
)
MESSAGE
(
STATUS
"NO COMPILE WITH $ENV{SPACK_CC}"
)
set
(
CMAKE_C_COMPILER
"
${
SPACK_CC
}
"
)
set
(
CMAKE_C_COMPILER
"$
ENV
{SPACK_CC}"
)
else
()
MESSAGE
(
STATUS
"YES COMPILE WITH $
ENV
{MPI_C_COMPILER}"
)
MESSAGE
(
STATUS
"YES COMPILE WITH
${
MPI_C_COMPILER
}
"
)
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
"$ENV{SPACK_CXX}"
)
set
(
CMAKE_C
XX
_COMPILER
"$ENV{SPACK_CXX}"
)
else
()
set
(
CMAKE_CXX_COMPILER
"
${
MPI_CXX_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