2017-07-27 20:43:05 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gknowles/dimcli
|
2024-03-05 01:53:52 -08:00
|
|
|
REF "v${VERSION}"
|
2024-09-30 08:53:30 -07:00
|
|
|
SHA512 fff7ac643b42c9c4464ac34c80369ef1e3d9d87677a3c7c660fd6a697b57348599b445794ac278d87a9a8d31c00adfded5932ecaa54e8ed918cb4665023fd8d5
|
2017-07-27 20:43:05 -07:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2020-09-27 17:59:45 -07:00
|
|
|
|
2022-01-21 06:28:16 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" staticCrt)
|
2018-06-26 22:31:25 -07:00
|
|
|
|
2022-01-21 06:28:16 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-06-26 22:31:25 -07:00
|
|
|
OPTIONS
|
|
|
|
-DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
|
|
|
|
-DINSTALL_LIBS:BOOL=ON
|
2018-10-25 15:27:36 -07:00
|
|
|
-DBUILD_PROJECT_NAME=dimcli
|
2022-01-21 06:28:16 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DINSTALL_TOOLS=OFF
|
|
|
|
-DINSTALL_TESTS=OFF
|
2016-12-12 12:05:20 -08:00
|
|
|
)
|
|
|
|
|
2022-01-21 06:28:16 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
2024-03-05 01:53:52 -08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2016-12-12 12:05:20 -08:00
|
|
|
|
|
|
|
# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|