Welcome to mirror list, hosted at ThFree Co, Russian Federation.

FindPCRE2.cmake « cmake - gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8654b44220ca6b22f20cee5a2c1386e2d880fca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
find_path(PCRE2_INCLUDE_DIR
  NAMES pcre2.h
  PATHS ../../../../libs
        /usr
  PATH_SUFFIXES include)

find_library(PCRE2_LIBRARY
  NAMES pcre2-8
  PATHS ../../../../libs
        /usr
  PATH_SUFFIXES lib)

if (PCRE2_INCLUDE_DIR AND PCRE2_LIBRARY)
  message(STATUS "found pcre2 headers at ${PCRE2_INCLUDE_DIR}")
  message(STATUS "found pcre2 libraries at ${PCRE2_LIBRARY}")
  set(PCRE2_INCLUDE_DIRS ${PCRE2_INCLUDE_DIR})
  set(PCRE2_LIBRARIES ${PCRE2_LIBRARY})
  set(PCRE2_FOUND yes)
else()
  set(PCRE2_INCLUDE_DIRS)
  set(PCRE2_LIBRARIES)
  set(PCRE2_FOUND no)
endif()