From f72c465aff62315d3854b7de040f3c31e53a242f Mon Sep 17 00:00:00 2001 From: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Date: Tue, 17 Mar 2020 05:51:46 +0800 Subject: [PATCH] [mlpack] Fix build tool error (#10409) * [mlpack] Fix build tool error * Remove tests from tool feature --- ports/mlpack/CONTROL | 4 ++-- ports/mlpack/portfile.cmake | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ports/mlpack/CONTROL b/ports/mlpack/CONTROL index f7416c2cd..6d6a89702 100644 --- a/ports/mlpack/CONTROL +++ b/ports/mlpack/CONTROL @@ -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. diff --git a/ports/mlpack/portfile.cmake b/ports/mlpack/portfile.cmake index 71d110b48..21149bcfa 100644 --- a/ports/mlpack/portfile.cmake +++ b/ports/mlpack/portfile.cmake @@ -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()