2018-04-11 01:56:24 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cjlin1/liblinear
|
2021-09-04 08:37:20 +08:00
|
|
|
REF 60f1adf6f35d6f3e031c334b33dfe8399d6f8a9d #v243
|
|
|
|
SHA512 0f88f8dd768313d0a9b3bb82e7b878d7173ea43ef609e993dc79e94398897373faf2688249b17111e2b6e06e78e26a50570a1b746dc4e73fb7416ccc24936c66
|
2018-04-11 01:56:24 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2018-04-11 01:56:24 +08:00
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-04-11 01:56:24 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
-DDISABLE_INSTALL_TOOLS=ON
|
|
|
|
)
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-04-11 01:56:24 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-09-23 06:36:04 +08:00
|
|
|
if(NOT DISABLE_INSTALL_TOOLS)
|
2021-09-04 08:37:20 +08:00
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/liblinear")
|
2020-09-23 06:36:04 +08:00
|
|
|
endif()
|
|
|
|
|
2021-09-04 08:37:20 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|