2024-09-24 02:27:46 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
|
|
|
|
2020-06-02 09:34:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-05-17 23:27:52 +08:00
|
|
|
REPO Thalhammer/jwt-cpp
|
2024-02-23 02:21:46 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 b6fdb93e3f2f065a2eb45fe16cb076a932b8d4bfad2251bd66d2be40d8afaf5c27a9cf17aaea61d8bfa3f5ff9ed3b45f90962dc14d72704ac5b9d717c12cc79f
|
2019-05-17 23:27:52 +08:00
|
|
|
HEAD_REF master
|
2024-09-24 02:27:46 +08:00
|
|
|
PATCHES
|
|
|
|
external-json.diff
|
2020-06-02 09:34:07 +08:00
|
|
|
)
|
2024-09-24 02:27:46 +08:00
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/include/picojson")
|
2019-05-17 23:27:52 +08:00
|
|
|
|
2024-09-24 02:27:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DJWT_BUILD_EXAMPLES=OFF
|
|
|
|
-DJWT_CMAKE_FILES_INSTALL_DIR=share/${PORT}
|
|
|
|
)
|
2024-02-23 02:21:46 +08:00
|
|
|
|
2024-09-24 02:27:46 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2024-02-23 02:21:46 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|