mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 06:18:07 +03:00
547aa7fa32
Summary: This simply adds pcre2 to be used by other projects. Reviewed By: chadaustin Differential Revision: D38134778 fbshipit-source-id: 15222e9c7f9e0e3a078e9d75ef55b4dbce034d8e
13 lines
379 B
CMake
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)
|