vcpkg/ports/dimcli/portfile.cmake

36 lines
871 B
CMake
Raw Normal View History

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-09-03 10:53:02 +08:00
REF v5.0.1
SHA512 ff005777230f9ded5e407f11ebed7d70db2a18ec60da8c80d36644b96c9d090d2f211e3c36b7d296a446c1b54d61c359a51082034b94e2398cc2305316f33d0f
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)
if(VCPKG_CRT_LINKAGE STREQUAL "static")
2016-12-13 04:05:20 +08:00
set(staticCrt ON)
endif()
2016-12-13 04:05:20 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
-DINSTALL_LIBS:BOOL=ON
-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
file(
INSTALL "${SOURCE_PATH}/LICENSE"
2016-12-13 04:05:20 +08:00
DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli"
RENAME copyright
)