mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 05:30:26 +08:00
25 lines
754 B
CMake
25 lines
754 B
CMake
|
include(vcpkg_common_functions)
|
||
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||
|
message(WARNING "Dynamic not supported building static")
|
||
|
set(VCPKG_LIBRARY_LINKAGE static)
|
||
|
endif()
|
||
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO google/gumbo-parser
|
||
|
REF v0.10.1
|
||
|
SHA512 bb1fb55cd07076ab6a9f38dc14db50397dbdca9a04ace4895dfba8b8cbc09038a96e26070c09c75fa929ada2e815affe233c1e2ecd8afe2aba6201647cf277d1
|
||
|
HEAD_REF master
|
||
|
)
|
||
|
|
||
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||
|
|
||
|
vcpkg_configure_cmake(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
PREFER_NINJA
|
||
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||
|
)
|
||
|
|
||
|
vcpkg_install_cmake()
|
||
|
|
||
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/gumbo RENAME copyright)
|