mirror of
https://github.com/boostorg/odeint.git
synced 2025-05-11 13:34:09 +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::fusion
|
||||||
Boost::iterator
|
Boost::iterator
|
||||||
Boost::math
|
Boost::math
|
||||||
Boost::mpi
|
|
||||||
Boost::mpl
|
Boost::mpl
|
||||||
Boost::multi_array
|
Boost::multi_array
|
||||||
Boost::numeric_ublas
|
Boost::numeric_ublas
|
||||||
@ -58,6 +57,14 @@ else()
|
|||||||
Boost::utility
|
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()
|
endif()
|
||||||
|
|
||||||
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user