aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/jwt-cpp/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/jwt-cpp/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/jwt-cpp/portfile.cmake')
-rw-r--r--vcpkg/ports/jwt-cpp/portfile.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/jwt-cpp/portfile.cmake b/vcpkg/ports/jwt-cpp/portfile.cmake
new file mode 100644
index 0000000..4178a6a
--- /dev/null
+++ b/vcpkg/ports/jwt-cpp/portfile.cmake
@@ -0,0 +1,31 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Thalhammer/jwt-cpp
+ REF "v${VERSION}"
+ SHA512 1d52816e4d04a50c57e3655e1ebd0fa4e54d03aef49950b800c9c43715cdaceec7a572a02ffff5d358d5f8cde242112da06804fc7a53bc154b3860cf133716a0
+ HEAD_REF master
+ PATCHES
+ picojson_from_vcpkg.patch
+)
+file(REMOVE_RECURSE "${SOURCE_PATH}/include/picojson")
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ INVERTED_FEATURES
+ picojson JWT_DISABLE_PICOJSON
+)
+
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DJWT_EXTERNAL_PICOJSON=ON
+ -DJWT_BUILD_EXAMPLES=OFF
+ -DJWT_CMAKE_FILES_INSTALL_DIR=share/${PORT}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup()
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")