sapling/build/fbcode_builder/CMake/FindPCRE2.cmake
Xavier Deguillard 547aa7fa32 manifest: add pcre2
Summary: This simply adds pcre2 to be used by other projects.

Reviewed By: chadaustin

Differential Revision: D38134778

fbshipit-source-id: 15222e9c7f9e0e3a078e9d75ef55b4dbce034d8e
2022-07-26 13:51:58 -07:00

13 lines
379 B
CMake

# Copyright (c) Facebook, Inc. and its affiliates.
include(FindPackageHandleStandardArgs)
find_path(PCRE2_INCLUDE_DIR NAMES pcre2.h)
find_library(PCRE2_LIBRARY NAMES pcre2-8)
find_package_handle_standard_args(
PCRE2
DEFAULT_MSG
PCRE2_LIBRARY
PCRE2_INCLUDE_DIR
)
set(PCRE2_DEFINES "PCRE2_CODE_UNIT_WIDTH=8")
mark_as_advanced(PCRE2_INCLUDE_DIR PCRE2_LIBRARY PCRE2_DEFINES)