Skip to content

Commit

Permalink
Merge pull request #100 from ktbolt/get-nompi-working_45
Browse files Browse the repository at this point in the history
Remove problem not finding MPI_EXTRA_LIBRARY and setting no-mpi build…
  • Loading branch information
ktbolt committed May 20, 2021
2 parents aeb2868 + bbcdcb6 commit 9e5ebbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Code/CMake/FindMPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ if (MPI_NUMLIBS GREATER 1)
set(MPI_EXTRA_LIBRARY ${MPI_EXTRA_LIBRARY_WORK} CACHE STRING "Extra MPI libraries to link against" FORCE)
else()
set(MPI_EXTRA_LIBRARY "MPI_EXTRA_LIBRARY-NOTFOUND" CACHE STRING "Extra MPI libraries to link against" FORCE)
set(MPI_EXTRA_LIBRARY "")
endif()
#=============================================================================

Expand Down
2 changes: 2 additions & 0 deletions Code/FlowSolvers/ThreeDSolver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ if(NOT SV_USE_DUMMY_MPI)
if(SV_BUILD_ADDITIONAL_NOMPI_VERSION)
set(SV_USE_DUMMY_MPI ON)
set(SV_MPI_NAME_EXT "-nompi")
# Set including the mpi.h from dummyMPI.
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/dummyMPI)
add_subdirectory(dummyMPI)
add_subdirectory(svLS svLS${SV_MPI_NAME_EXT})
add_subdirectory(svSolver svSolver${SV_MPI_NAME_EXT})
Expand Down

0 comments on commit 9e5ebbc

Please sign in to comment.