sapling/CMake/FindLibGit2.cmake
Xavier Deguillard a29d465ee8 fs: fix license header
Summary:
With Facebook having been renamed Meta Platforms, we need to change the license
headers.

Reviewed By: fanzeyi

Differential Revision: D33407812

fbshipit-source-id: b11bfbbf13a48873f0cea75f212cc7b07a68fb2e
2022-01-04 15:00:07 -08:00

20 lines
550 B
CMake

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
include(FindPackageHandleStandardArgs)
find_package(PkgConfig)
pkg_check_modules(LibGit2 libgit2 QUIET IMPORTED_TARGET)
if(LibGit2_FOUND)
set_target_properties(PkgConfig::LibGit2 PROPERTIES IMPORTED_GLOBAL True)
add_library(libgit2 ALIAS PkgConfig::LibGit2)
endif()
find_package_handle_standard_args(
LibGit2
REQUIRED_VARS LibGit2_PREFIX
VERSION_VAR LibGit2_VERSION
)