sapling/CMake/FindPrjfs.cmake
Wez Furlong 56a0b18a2d eden: adjust projectedfs SDK dep search procedure
Summary:
This diff revises our cmake logic to search for the projectedfs
SDK in an additional location.

Reviewed By: strager

Differential Revision: D16907859

fbshipit-source-id: 0df26a675f09a327c01cb0bd1219e479ccd1dfe6
2019-08-28 06:49:30 -07:00

28 lines
898 B
CMake

# Copyright (c) Facebook, Inc. and its 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 PATHS "facebook/third-party/prjfs" "D:/edenwin64/prjfs")
find_library(PRJFS_LIBRARY NAMES ProjectedFSLib.lib PATHS "facebook/third-party/prjfs" "D:/edenwin64/prjfs")
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()