vcpkg/ports/libtcod/portfile.cmake
Kyle Benesch f33d743a75
[libtcod] Update to 1.19.0 (#21355)
* [libtcod] Update to 1.19.0

* Fail UWP triplets for libtcod in CI baseline.

This was because of internal deprecations being treated as errors.
2021-11-17 12:45:16 -08:00

29 lines
755 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO libtcod/libtcod
REF 1.19.0
SHA512 462c3deadaeaaf3adb44427d41c4e8c1acc2c37ef90677d8d60e8194f9c190bc7e02b0cf2b285e248171354f8d73f1dd28144cfe8a98a469e1071448bce9e68b
HEAD_REF develop
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
${FEATURE_OPTIONS}
-DCMAKE_INSTALL_INCLUDEDIR=${CURRENT_PACKAGES_DIR}/include
-DLIBTCOD_SDL2=find_package
-DLIBTCOD_ZLIB=find_package
-DLIBTCOD_GLAD=find_package
-DLIBTCOD_LODEPNG=find_package
-DLIBTCOD_UTF8PROC=vcpkg
-DLIBTCOD_STB=vcpkg
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")