thirdparty/folly/build/fbcode_builder/CMake/FindPCRE2.cmake
raw| 1 | # Copyright (c) Facebook, Inc. and its affiliates. |
| 2 | include(FindPackageHandleStandardArgs) |
| 3 | find_path(PCRE2_INCLUDE_DIR NAMES pcre2.h) |
| 4 | find_library(PCRE2_LIBRARY NAMES pcre2-8) |
| 5 | find_package_handle_standard_args( |
| 6 | PCRE2 |
| 7 | DEFAULT_MSG |
| 8 | PCRE2_LIBRARY |
| 9 | PCRE2_INCLUDE_DIR |
| 10 | ) |
| 11 | set(PCRE2_DEFINES "PCRE2_CODE_UNIT_WIDTH=8") |
| 12 | mark_as_advanced(PCRE2_INCLUDE_DIR PCRE2_LIBRARY PCRE2_DEFINES) |