vcpkg/ports/charls/portfile.cmake
JonLiu1993 c4d2b80ee8
[charls] update to 2.4.1 (#29055)
* [charls] update to 2.4.1

* update version
2023-01-19 18:02:31 -08:00

26 lines
769 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO team-charls/charls
REF dd9e90d2d2be86194cc3bd164b5cce35abcf2024 #v2.4.1
SHA512 33690d1647e57dedb22ad5cb75e4b41de41d0c603e0ec8e4b27dc2fa2ce71a97ab07deaa1aa42154369efb609b3954f7db51317f1dafd83d6cf882f2bade59a9
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCHARLS_BUILD_TESTS=OFF
-DCHARLS_BUILD_SAMPLES=OFF
-DCHARLS_BUILD_FUZZ_TEST=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/charls)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()