mirror of
https://github.com/boostorg/odeint.git
synced 2025-05-09 23:24:01 +00:00
Change linking of MPI with cmake
This commit is contained in:
parent
0c4584ca0c
commit
9e3f61d233
@ -45,7 +45,6 @@ else()
|
||||
Boost::fusion
|
||||
Boost::iterator
|
||||
Boost::math
|
||||
Boost::mpi
|
||||
Boost::mpl
|
||||
Boost::multi_array
|
||||
Boost::numeric_ublas
|
||||
@ -58,6 +57,14 @@ else()
|
||||
Boost::utility
|
||||
)
|
||||
|
||||
# From CMake 3.30 linking against MPI when it does not exist gives errors
|
||||
if(BOOST_ENABLE_MPI)
|
||||
target_link_libraries(boost_numeric_odeint
|
||||
INTERFACE
|
||||
Boost::mpi
|
||||
)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
||||
|
Loading…
x
Reference in New Issue
Block a user