mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 05:58:04 +08:00
[mlpack] Add feature openmp (#18942)
* [mlpack] Add feature openmp * format manifest * add version stuff * Update ports/mlpack/portfile.cmake * Update versions/m-/mlpack.json
This commit is contained in:
parent
bbe9763f62
commit
ee9de9fcc4
13
ports/mlpack/fix-dependencies.patch
Normal file
13
ports/mlpack/fix-dependencies.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 4dd92f0..bfa697d 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -488,7 +488,7 @@ add_definitions(-DBOOST_TEST_DYN_LINK)
|
||||||
|
# }
|
||||||
|
# #endif
|
||||||
|
if (USE_OPENMP)
|
||||||
|
- find_package(OpenMP)
|
||||||
|
+ find_package(OpenMP REQUIRED)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (OPENMP_FOUND)
|
@ -8,6 +8,7 @@ vcpkg_from_github(
|
|||||||
cmakelists.patch
|
cmakelists.patch
|
||||||
fix-configure-error.patch
|
fix-configure-error.patch
|
||||||
fix-test-dependency.patch
|
fix-test-dependency.patch
|
||||||
|
fix-dependencies.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindACML.cmake)
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindACML.cmake)
|
||||||
@ -22,7 +23,9 @@ file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindOpenBLAS.cmake)
|
|||||||
file(REMOVE ${SOURCE_PATH}/CMake/FindArmadillo.cmake)
|
file(REMOVE ${SOURCE_PATH}/CMake/FindArmadillo.cmake)
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||||
tools BUILD_CLI_EXECUTABLES
|
FEATURES
|
||||||
|
tools BUILD_CLI_EXECUTABLES
|
||||||
|
openmp USE_OPENMP
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "mlpack",
|
"name": "mlpack",
|
||||||
"version": "3.4.1",
|
"version": "3.4.1",
|
||||||
"port-version": 1,
|
"port-version": 2,
|
||||||
"description": "mlpack is a fast, flexible machine learning library, written in C++, that aims to provide fast, extensible implementations of cutting-edge machine learning algorithms.",
|
"description": "mlpack is a fast, flexible machine learning library, written in C++, that aims to provide fast, extensible implementations of cutting-edge machine learning algorithms.",
|
||||||
"homepage": "https://github.com/mlpack/mlpack",
|
"homepage": "https://github.com/mlpack/mlpack",
|
||||||
"supports": "uwp",
|
"supports": "uwp",
|
||||||
@ -17,6 +17,9 @@
|
|||||||
"stb"
|
"stb"
|
||||||
],
|
],
|
||||||
"features": {
|
"features": {
|
||||||
|
"openmp": {
|
||||||
|
"description": "use OpenMP for parallelization."
|
||||||
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
"description": "Build command-line executables."
|
"description": "Build command-line executables."
|
||||||
}
|
}
|
||||||
|
@ -4082,7 +4082,7 @@
|
|||||||
},
|
},
|
||||||
"mlpack": {
|
"mlpack": {
|
||||||
"baseline": "3.4.1",
|
"baseline": "3.4.1",
|
||||||
"port-version": 1
|
"port-version": 2
|
||||||
},
|
},
|
||||||
"mman": {
|
"mman": {
|
||||||
"baseline": "git-f5ff813-3",
|
"baseline": "git-f5ff813-3",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "587ee2575ef7543ff9a0ed30e645154db26f0001",
|
||||||
|
"version": "3.4.1",
|
||||||
|
"port-version": 2
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "4793fb5802e10e645d5d33e0ec2baf6f1a0a337b",
|
"git-tree": "4793fb5802e10e645d5d33e0ec2baf6f1a0a337b",
|
||||||
"version": "3.4.1",
|
"version": "3.4.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user