mirror of
https://github.com/boostorg/odeint.git
synced 2026-01-19 04:22:12 +00:00
Merge pull request #86 from boostorg/Cmake_mpi
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -32,6 +32,7 @@ env:
|
||||
B2_LINK: shared,static
|
||||
LCOV_BRANCH_COVERAGE: 0
|
||||
CODECOV_NAME: Github Actions
|
||||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
|
||||
|
||||
jobs:
|
||||
posix:
|
||||
|
||||
13
.github/workflows/codecov.yml
vendored
13
.github/workflows/codecov.yml
vendored
@@ -28,6 +28,7 @@ env:
|
||||
B2_LINK: shared,static
|
||||
LCOV_BRANCH_COVERAGE: 0
|
||||
CODECOV_NAME: Github Actions
|
||||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
|
||||
|
||||
jobs:
|
||||
posix:
|
||||
@@ -184,3 +185,15 @@ jobs:
|
||||
- name: Upload coverage
|
||||
if: matrix.coverage
|
||||
run: ci/codecov.sh "upload"
|
||||
env:
|
||||
BOOST_CI_CODECOV_IO_UPLOAD: skip
|
||||
|
||||
- name: Upload coverage
|
||||
if: matrix.coverage
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
disable_search: true
|
||||
file: coverage.info
|
||||
name: Github Actions
|
||||
token: ${{secrets.CODECOV_TOKEN}}
|
||||
verbose: true
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user