2016-12-13 04:05:20 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-07-28 11:43:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gknowles/dimcli
|
2019-08-21 01:24:28 +08:00
|
|
|
REF v5.0.0
|
|
|
|
SHA512 504e6f53e83ce17e8e4b59ecf1a610c2249c2bf48a308b1ee5db0e0e85d3cb08178d24534b5dee8bfaac83fd44c68cbbe8d300283d0023467b724a9340b56e4c
|
2017-07-28 11:43:05 +08:00
|
|
|
HEAD_REF master
|
2019-08-14 05:48:21 +08:00
|
|
|
PATCHES
|
|
|
|
fix-NameBoolean.patch
|
2017-07-28 11:43:05 +08:00
|
|
|
)
|
2016-12-13 04:05:20 +08:00
|
|
|
set(staticCrt OFF)
|
2018-06-27 13:31:25 +08:00
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
2016-12-13 04:05:20 +08:00
|
|
|
set(staticCrt ON)
|
|
|
|
endif()
|
2018-06-27 13:31:25 +08:00
|
|
|
|
2016-12-13 04:05:20 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
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
|
2016-12-13 04:05:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
# Handle copyright
|
2018-06-27 13:31:25 +08:00
|
|
|
file(
|
|
|
|
INSTALL "${SOURCE_PATH}/LICENSE"
|
2016-12-13 04:05:20 +08:00
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli"
|
2018-06-27 13:31:25 +08:00
|
|
|
RENAME copyright
|
|
|
|
)
|