mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
77c91973d7
Summary: The headers are included in the Windows devkits, thus we do not need to include an outdated version in the repository. Reviewed By: chadaustin Differential Revision: D34092871 fbshipit-source-id: f8ea381442edf5fa1f143e756d3ccac986035fc8
28 lines
766 B
CMake
28 lines
766 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.
|
|
|
|
# Find PrjFS
|
|
#
|
|
# This package sets:
|
|
# Prjfs_FOUND - Whether PrjFS was found
|
|
# PRJFS_INCLUDE_DIR - The include directory for Prjfs
|
|
# PRJFS_LIBRARY - The Prjfs library
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(PRJFS_INCLUDE_DIR NAMES ProjectedFSLib.h)
|
|
find_library(PRJFS_LIBRARY NAMES ProjectedFSLib.lib)
|
|
find_package_handle_standard_args(
|
|
Prjfs
|
|
PRJFS_INCLUDE_DIR
|
|
PRJFS_LIBRARY
|
|
)
|
|
|
|
if(Prjfs_FOUND)
|
|
add_library(ProjectedFS INTERFACE)
|
|
target_include_directories(ProjectedFS INTERFACE "${PRJFS_INCLUDE_DIR}")
|
|
target_link_libraries(ProjectedFS INTERFACE "${PRJFS_LIBRARY}")
|
|
endif()
|