diff options
Diffstat (limited to 'vcpkg/ports/boost-odeint')
| -rw-r--r-- | vcpkg/ports/boost-odeint/features.cmake | 6 | ||||
| -rw-r--r-- | vcpkg/ports/boost-odeint/opt-mpi.diff | 13 | ||||
| -rw-r--r-- | vcpkg/ports/boost-odeint/portfile.cmake | 18 | ||||
| -rw-r--r-- | vcpkg/ports/boost-odeint/vcpkg.json | 97 |
4 files changed, 134 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-odeint/features.cmake b/vcpkg/ports/boost-odeint/features.cmake new file mode 100644 index 0000000..09274d6 --- /dev/null +++ b/vcpkg/ports/boost-odeint/features.cmake @@ -0,0 +1,6 @@ +vcpkg_check_features(
+ OUT_FEATURE_OPTIONS
+ FEATURE_OPTIONS
+ FEATURES
+ "mpi" BOOST_ENABLE_MPI
+)
diff --git a/vcpkg/ports/boost-odeint/opt-mpi.diff b/vcpkg/ports/boost-odeint/opt-mpi.diff new file mode 100644 index 0000000..01b1cdb --- /dev/null +++ b/vcpkg/ports/boost-odeint/opt-mpi.diff @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3692bea4a7..29ee7adb1c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -61,7 +61,7 @@ target_link_libraries(boost_numeric_odeint + if(BOOST_ENABLE_MPI) + target_link_libraries(boost_numeric_odeint + INTERFACE +- Boost::mpi ++ $<TARGET_NAME_IF_EXISTS:Boost::mpi> + ) + endif() + diff --git a/vcpkg/ports/boost-odeint/portfile.cmake b/vcpkg/ports/boost-odeint/portfile.cmake new file mode 100644 index 0000000..b87d6a9 --- /dev/null +++ b/vcpkg/ports/boost-odeint/portfile.cmake @@ -0,0 +1,18 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/odeint + REF boost-${VERSION} + SHA512 7cc5f7439a3e1aadb4a3fc34f3927d78c9b8823d8a2104cca4e8ac0c5cec9e9220fb2815feaefa94b2f03b4eb4f65186beb629a4df0a3a18b3b9630f4999ab6b + HEAD_REF master + PATCHES + opt-mpi.diff +) + +set(FEATURE_OPTIONS "") +include("${CMAKE_CURRENT_LIST_DIR}/features.cmake") +boost_configure_and_install( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} +) diff --git a/vcpkg/ports/boost-odeint/vcpkg.json b/vcpkg/ports/boost-odeint/vcpkg.json new file mode 100644 index 0000000..ce3796a --- /dev/null +++ b/vcpkg/ports/boost-odeint/vcpkg.json @@ -0,0 +1,97 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-odeint", + "version": "1.89.0", + "description": "Boost odeint module", + "homepage": "https://www.boost.org/libs/numeric/odeint", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-cmake", + "version>=": "1.89.0" + }, + { + "name": "boost-compute", + "version>=": "1.89.0" + }, + { + "name": "boost-config", + "version>=": "1.89.0" + }, + { + "name": "boost-core", + "version>=": "1.89.0" + }, + { + "name": "boost-fusion", + "version>=": "1.89.0" + }, + { + "name": "boost-headers", + "version>=": "1.89.0" + }, + { + "name": "boost-iterator", + "version>=": "1.89.0" + }, + { + "name": "boost-math", + "version>=": "1.89.0" + }, + { + "name": "boost-mpl", + "version>=": "1.89.0" + }, + { + "name": "boost-multi-array", + "version>=": "1.89.0" + }, + { + "name": "boost-preprocessor", + "version>=": "1.89.0" + }, + { + "name": "boost-range", + "version>=": "1.89.0" + }, + { + "name": "boost-static-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-throw-exception", + "version>=": "1.89.0" + }, + { + "name": "boost-type-traits", + "version>=": "1.89.0" + }, + { + "name": "boost-ublas", + "version>=": "1.89.0" + }, + { + "name": "boost-units", + "version>=": "1.89.0" + }, + { + "name": "boost-utility", + "version>=": "1.89.0" + } + ], + "features": { + "mpi": { + "description": "Support parallelization with MPI", + "dependencies": [ + { + "name": "boost-mpi", + "version>=": "1.89.0" + } + ] + } + } +} |