mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
5898891125
* [openexr,openimageio,suitesparse,theia] updates for non-win32 * [theia] use only valid cmake symbols * [suitesparse] Fix build * [lapack] still not properly integrating with other ports * [lapack] intercept cmake module calls and substitute them with our defs * [suitesparse,clapack] fixes for proper integration * [ceres,clapack] bump CONTROL * [suitesparse] remove unnecessary defs * [clapack] improve wrapper logic * [WIN32] remove wrong symbol * [clapack] fix wrapper integration * [Accelerate] use best framework when available * [clapack] separate config from wrapper * [clapack] fix paths and filenames * [mlpack,armadillo,clapack] improve library handling * [mlpack] remove unnecessary cmake option * [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32 * [openmvg] fix for case-sensitive filesystems * [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps * [sophus] Force rebuild * [theia] fixes for linux, part1 * [io2d] remove broken sintax * [fontconfig] bump version to remove CI cached failure * [theia] fixes for linux, part2 * [theia] remove unnecessary empty folders and comments from portfile * [theia] use correct build type removing forced vars in cmakelists.txt * [openmvg] add missing suitesparse target detection * [sophus] fix Suitesparse dependency * [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems * [suitesparse] fixes for case-sensitive filesystems * [openmvg] use correct Eigen3 name for case-sensitive filesystems * [sophus] trigger rebuild * [shogun] use modern vcpkg style * [shogun] add missing cmake system processor symbol
51 lines
1.7 KiB
CMake
51 lines
1.7 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mlpack/mlpack
|
|
REF mlpack-3.1.0
|
|
SHA512 dc305a9a2f7232d3957206a346d0ac97ba13b933d5dbef45329002b8380ecc0982621c0b97f6c5ee82d0a26ad53b1cdd7a9b991fb749efc8546394988ac40a5b
|
|
HEAD_REF master
|
|
PATCHES
|
|
cmakelists.patch
|
|
)
|
|
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindACML.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindACMLMP.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindARPACK.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindBLAS.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindCBLAS.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindCLAPACK.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindLAPACK.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindMKL.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindOpenBLAS.cmake)
|
|
file(REMOVE ${SOURCE_PATH}/CMake/FindArmadillo.cmake)
|
|
|
|
set(BUILD_TOOLS OFF)
|
|
if("tools" IN_LIST FEATURES)
|
|
set(BUILD_TOOLS ON)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_TESTS=${BUILD_TOOLS}
|
|
-DBUILD_CLI_EXECUTABLES=${BUILD_TOOLS}
|
|
)
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYRIGHT.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/mlpack RENAME copyright)
|
|
|
|
if(BUILD_TOOLS)
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
|
|
file(GLOB MLPACK_TOOLS ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
|
file(COPY ${MLPACK_TOOLS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
|
file(REMOVE ${MLPACK_TOOLS})
|
|
file(GLOB MLPACK_TOOLS_DEBUG ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
file(REMOVE ${MLPACK_TOOLS_DEBUG})
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|