diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cxxopts/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/cxxopts/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/cxxopts/portfile.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/cxxopts/portfile.cmake b/vcpkg/ports/cxxopts/portfile.cmake new file mode 100644 index 0000000..4f17511 --- /dev/null +++ b/vcpkg/ports/cxxopts/portfile.cmake @@ -0,0 +1,25 @@ +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jarro2783/cxxopts + REF "v${VERSION}" + SHA512 a22da1436a263d51aad2f542c2099f5b4fd1b02674716ff26d2f575786dcec4e97400edebf5577de95f3ae48c7c99be7be17d7a3de3e01a9f3612667e1547908 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCXXOPTS_BUILD_EXAMPLES=OFF + -DCXXOPTS_BUILD_TESTS=OFF + -DCXXOPTS_ENABLE_WARNINGS=OFF + -DCXXOPTS_CMAKE_DIR=share/cxxopts +) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") |