2017-07-28 11:43:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gknowles/dimcli
|
2023-01-27 11:16:36 +08:00
|
|
|
REF v7.1.0
|
|
|
|
SHA512 3fad1c68e116c65df453a545fe9def6dc05941675900fd81728531d7638fc1814b82ee1f613ec451bc6c31702a3d5e31f275e605fe6bd62c61513ecd78a172cc
|
2017-07-28 11:43:05 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2020-09-28 08:59:45 +08:00
|
|
|
|
2022-01-21 06:28:16 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" staticCrt)
|
2018-06-27 13:31:25 +08:00
|
|
|
|
2022-01-21 06:28:16 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-06-27 13:31:25 +08:00
|
|
|
OPTIONS
|
|
|
|
-DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
|
|
|
|
-DINSTALL_LIBS:BOOL=ON
|
2018-10-26 06:27:36 +08:00
|
|
|
-DBUILD_PROJECT_NAME=dimcli
|
2022-01-21 06:28:16 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DINSTALL_TOOLS=OFF
|
|
|
|
-DINSTALL_TESTS=OFF
|
2016-12-13 04:05:20 +08:00
|
|
|
)
|
|
|
|
|
2022-01-21 06:28:16 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2016-12-13 04:05:20 +08:00
|
|
|
|
|
|
|
# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-09-28 08:59:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli" RENAME copyright)
|