vcpkg/ports/enet/portfile.cmake

24 lines
726 B
CMake
Raw Normal View History

2017-09-26 13:08:27 +01:00
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
REPO "lsalzman/enet"
REF "v${VERSION}"
2017-09-26 13:08:27 +01:00
HEAD_REF master
SHA512 a0d2fa8c957704dd49e00a726284ac5ca034b50b00d2b20a94fa1bbfbb80841467834bfdc84aa0ed0d6aab894608fd6c86c3b94eee46343f0e6d9c22e391dbf9
PATCHES fix-export.patch
2017-09-26 13:08:27 +01:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2017-09-26 13:08:27 +01:00
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-enet CONFIG_PATH share/unofficial-enet)
2017-09-26 13:08:27 +01:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2017-09-26 13:08:27 +01:00
vcpkg_copy_pdbs()
2017-09-26 13:08:27 +01:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")