vcpkg/ports/yara/portfile.cmake
JonLiu1993 81610d74c8
[YARA] update to 4.1.0 (#17551)
* [YARA] update to 4.1.0

* version update
2021-05-21 01:16:52 -07:00

25 lines
707 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO VirusTotal/yara
REF e1360f6cbe3d8daf350018661bc6772bd5b726f2 #v4.1.0
SHA512 55f55ed41af1049e500f77f6d02fb6992dabd84efb906ff0b3ba746b3c5d890cb622845622692f230dad51a510c068c0a0195932c8931d3e56c71fc17d8769d5
HEAD_REF dev
)
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
-DDISABLE_INSTALL_TOOLS=ON
)
vcpkg_install_cmake()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)