mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 11:10:26 +08:00
120348bb2a
* [gsl-lite] Update to version 0.36.0 Update the URL to point to the new location of the library. Use proper CMake installation instead of just deploying the header file. Have the legacy header <gsl-lite.hpp> produce a diagnostic and forward to the proper header <gsl/gsl-lite.hpp>. * [telnetpp] Update telnetpp patch * Tidy up
40 lines
1.1 KiB
CMake
40 lines
1.1 KiB
CMake
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
|
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO KazDragon/telnetpp
|
|
REF 8dc780579293153ad2ae9ad6943815c050d4c659
|
|
SHA512 280a8e6c0392f5822b05968520d176d1510f00c12a2502f6039f4f1f78a558e61f825a231fb70b7de6fd21a18b24734eea3ba36a24b29f2a7e9856b1f4de5217
|
|
HEAD_REF master
|
|
PATCHES fix-build-error.patch
|
|
)
|
|
|
|
set(USE_ZLIB OFF)
|
|
if("zlib" IN_LIST FEATURES)
|
|
set(USE_ZLIB ON)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DGSL_INCLUDE_PATH=${CURRENT_INSTALLED_DIR}/include
|
|
-DTELNETPP_WITH_ZLIB=${USE_ZLIB}
|
|
-DTELNETPP_WITH_TESTS=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/telnetpp)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Remove duplicate header files and CMake input file
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/telnetpp/version.hpp.in)
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/telnetpp RENAME copyright)
|