Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
00d8f84d
Commit
00d8f84d
authored
13 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
Update the cmake to compile mpi program.
parent
04108166
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+7
-4
7 additions, 4 deletions
CMakeLists.txt
with
7 additions
and
4 deletions
CMakeLists.txt
+
7
−
4
View file @
00d8f84d
...
...
@@ -6,11 +6,14 @@ if(insource)
MESSAGE
(
FATAL_ERROR
"
${
PROJECT_NAME
}
requires an out of source build. Goto ./Build and tapes cmake ../"
)
endif
(
insource
)
# MPI option has to be set before project
OPTION
(
SCALFMM_USE_MPI
"Set to ON to build ScaFMM with MPI"
OFF
)
# MPI option has to be set before project, cannot be changed in the cache!
if
(
SCALFMM_USE_MPI
)
SET
(
CMAKE_CXX_COMPILER mpicxx
)
endif
()
include
(
CMakeForceCompiler
)
CMAKE_FORCE_C_COMPILER
(
mpicc
"MPI C Compiler"
)
CMAKE_FORCE_CXX_COMPILER
(
mpicxx
"MPI C++ Compiler"
)
else
()
MESSAGE
(
STATUS
"Remove CMake cache and run cmake .. -DSCALFMM_USE_MPI=ON to enable MPI"
)
endif
(
SCALFMM_USE_MPI
)
# Project Infos
project
(
scalfmm
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment