mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 05:41:37 +08:00
a6cb7292c4
* [many ports]switch to vcpkg-cmake / vckg-cmake-config * version * Missing changes * version * typo * version * typo * version * fix typo * version * deprecate vcpkg_extract_source_archive_ex * version * fix arguments * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
26 lines
747 B
CMake
26 lines
747 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO erincatto/Box2D
|
|
REF 9ebbbcd960ad424e03e5de6e66a40764c16f51bc #v2.4.1
|
|
SHA512 d9fa387ce893ed1fb73f80006491202f2624ef6d0fb37daf92fbd1a7f9071c84da45e4b418b333566435bbbdfd3d5f68a42dfca02416e9a3a2b4db039f1c6151
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBOX2D_BUILD_UNIT_TESTS=OFF
|
|
-DBOX2D_BUILD_TESTBED=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/box2d)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|