mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 02:27:56 +08:00
d4b6f751b7
* [ponder] patch missing headers, previously submitted as https://github.com/billyquith/ponder/pull/121 * Add home page. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Remove vcpkg_common_functions. Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO billyquith/ponder
|
|
REF 3.0.0
|
|
SHA512 b6ba1ce9fa0584b16085c56afb70e31f204a66b57193c1a4225bfe18abbda561bb71b3279dd0a4f1b21867b985ef5ce78c8e360f3fc654c61ce61c44d35c5f38
|
|
HEAD_REF master
|
|
PATCHES
|
|
no-install-unused.patch
|
|
github-121.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DUSES_RAPIDJSON=OFF
|
|
-DUSES_RAPIDXML=OFF
|
|
-DBUILD_TEST=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/${PORT}/cmake)
|
|
|
|
file(REMOVE_RECURSE
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}
|
|
${CURRENT_PACKAGES_DIR}/lib/${PORT})
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(READ ${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp _contents)
|
|
string(REPLACE "ifndef PONDER_STATIC" "if 0 //ifndef PONDER_STATIC" _contents "${_contents}")
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp "${_contents}")
|
|
endif()
|
|
|
|
# Handle copyright
|
|
configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|