2020-06-02 10:10:23 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fpagliughi/sockpp
|
2023-06-17 11:48:32 +08:00
|
|
|
REF "v${VERSION}"
|
2024-02-27 16:11:07 +08:00
|
|
|
SHA512 99191c9551ff345f96af9177d124c6e10f3da8e87021576058b63df82ee64461cb8fc134919fe390617200aebf222e70501e3cee43fc0a294596947669ed4f03
|
2020-06-02 10:10:23 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-05-18 02:15:06 +08:00
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "\${SOCKPP}-static" "\${SOCKPP}")
|
2020-06-02 10:10:23 +08:00
|
|
|
|
2022-01-27 07:25:06 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-18 02:15:06 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-06-02 10:10:23 +08:00
|
|
|
OPTIONS
|
|
|
|
-DSOCKPP_BUILD_SHARED=OFF
|
|
|
|
-DSOCKPP_BUILD_STATIC=ON
|
|
|
|
-DSOCKPP_BUILD_DOCUMENTATION=OFF
|
|
|
|
-DSOCKPP_BUILD_EXAMPLES=OFF
|
|
|
|
-DSOCKPP_BUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2022-01-27 07:25:06 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-02 10:10:23 +08:00
|
|
|
|
2023-06-17 11:48:32 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2020-06-02 10:10:23 +08:00
|
|
|
|
2022-05-18 02:15:06 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-06-02 10:10:23 +08:00
|
|
|
|
2023-06-17 11:48:32 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|