mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 14:28:59 +08:00
db807ad49f
* [clapack] FindLapack was not working for VS Generators due to extra ascii symbol "%3b" in linker dependencies which is ";" (Lists in IMPORTED_LOCATION do not work as expected) This commit is based on CMakes FindLAPACK and adds f2c to be checked * added include(SelectLibraryConfigurations) * [clapack] remove openblas patch * [openblas] add trailing _ on linux * [openblas] add find wrapper * [clapack] fix FindLapack * bump control to retrigger full CI build * [openblas] enable ninja * [mlpack] fix libary names for linkage. * bump control * Delete enable_openblas_compatibility.patch * Delete fix_underscore.patch * Update portfile.cmake * correct control version bump * fix control version bump * bump control * remove comments * remove lines in patch file * remove comment * remove unused var
52 lines
1.7 KiB
CMake
52 lines
1.7 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mlpack/mlpack
|
|
REF mlpack-3.1.1
|
|
SHA512 4acef74da951934b9bd1cabd87b9d6d002c80eb3218f69755277fa654d928aed379a5e63987f32ec162cc005c2952e618d6d528c2311aebb8cd2cc01cab71f86
|
|
HEAD_REF master
|
|
PATCHES
|
|
cmakelists.patch
|
|
blas_lapack.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)
|