mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
a29d465ee8
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
20 lines
550 B
CMake
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
|
|
)
|