[mlpack] Fix build tool error (#10409)

* [mlpack] Fix build tool error

* Remove tests from tool feature
This commit is contained in:
NancyLi1013 2020-03-17 05:51:46 +08:00 committed by GitHub
parent 313d88c4df
commit f72c465aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,8 @@
Source: mlpack
Version: 3.2.2
Version: 3.2.2-1
Homepage: https://github.com/mlpack/mlpack
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.
Build-Depends: openblas (!osx), clapack (!osx), boost, armadillo, ensmallen
Feature: tools
Description: Build command-line executables and tests.
Description: Build command-line executables.

View File

@ -20,15 +20,14 @@ file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindOpenBLAS.cmake)
file(REMOVE ${SOURCE_PATH}/CMake/FindArmadillo.cmake)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
tools BUILD_TOOLS
tools BUILD_CLI_EXECUTABLES
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTS=${BUILD_TOOLS}
-DBUILD_CLI_EXECUTABLES=${BUILD_TOOLS}
-DBUILD_TESTS=OFF
${FEATURE_OPTIONS}
)
vcpkg_install_cmake()