Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
7c08256f
Commit
7c08256f
authored
Mar 21, 2018
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue#14 for spack
parent
001886f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
CMakeLists.txt
CMakeLists.txt
+27
-28
No files found.
CMakeLists.txt
View file @
7c08256f
...
...
@@ -299,35 +299,34 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/morse/
##############################################################################
#
if
(
SCALFMM_USE_MPI
)
# allows to use an external mpi compilation by setting compilers with
# -DMPI_C_COMPILER=path/to/mpicc -DMPI_CXX_COMPILER=path/to/mpicxx
# at cmake configure
if
(
NOT MPI_C_COMPILER
)
set
(
MPI_C_COMPILER mpicc
)
endif
()
if
(
NOT MPI_CXX_COMPILER
)
set
(
MPI_CXX_COMPILER mpicxx
)
endif
()
find_package
(
MPI REQUIRED
)
if
(
MPI_CXX_INCLUDE_PATH
)
include_directories
(
${
MPI_CXX_INCLUDE_PATH
}
)
endif
()
if
(
MPI_CXX_COMPILE_FLAGS
)
set
(
SCALFMM_CXX_FLAGS
"
${
SCALFMM_CXX_FLAGS
}
${
MPI_CXX_COMPILE_FLAGS
}
"
)
endif
()
if
(
MPI_CXX_INCLUDE_PATH
)
set
(
SCALFMM_INCLUDES
"
${
SCALFMM_INCLUDES
}
;
${
MPI_CXX_INCLUDE_PATH
}
"
)
endif
()
if
(
MPI_CXX_LINK_FLAGS
)
list
(
APPEND
"CMAKE_EXE_LINKER_FLAGS
${
MPI_CXX_LINK_FLAGS
}
"
)
endif
()
if
(
MPI_CXX_LIBRARIES
)
set
(
SCALFMM_LIBRARIES
"
${
SCALFMM_LIBRARIES
}
;
${
MPI_CXX_LIBRARIES
}
"
)
if
(
NOT MPI_FOUND
)
find_package
(
MPI REQUIRED
)
endif
()
endif
()
if
(
MPI_CXX_FOUND
)
message
(
"MPI_CXX is in the place"
)
if
(
MPI_CXX_INCLUDE_PATH
)
include_directories
(
${
MPI_CXX_INCLUDE_PATH
}
)
endif
()
if
(
MPI_CXX_COMPILE_FLAGS
)
set
(
SCALFMM_CXX_FLAGS
"
${
SCALFMM_CXX_FLAGS
}
${
MPI_CXX_COMPILE_FLAGS
}
"
)
endif
()
if
(
MPI_CXX_INCLUDE_PATH
)
set
(
SCALFMM_INCLUDES
"
${
SCALFMM_INCLUDES
}
;
${
MPI_CXX_INCLUDE_PATH
}
"
)
endif
()
if
(
MPI_CXX_LINK_FLAGS
)
list
(
APPEND
"CMAKE_EXE_LINKER_FLAGS
${
MPI_CXX_LINK_FLAGS
}
"
)
endif
()
if
(
MPI_CXX_LIBRARIES
)
set
(
SCALFMM_LIBRARIES
"
${
SCALFMM_LIBRARIES
}
;
${
MPI_CXX_LIBRARIES
}
"
)
endif
()
else
(
MPI_CXX_FOUND
)
message
(
FATAL_ERROR
"MPI is required but was not found. "
"Please provide an MPI compiler in your environment."
"Note that you can give the path to your MPI installation "
"by setting MPI_DIR cmake variable."
)
endif
(
MPI_CXX_FOUND
)
endif
(
SCALFMM_USE_MPI
)
#
##############################################################################
# Blas option #
...
...
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