forked from MapServer/mapcache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for pcre2. (MapServer#314)
* Add support for pcre2. Fixes: MapServer#272
- Loading branch information
Showing
7 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | ||
# file COPYING-CMAKE-SCRIPTS or https://cmake.org/licensing for details. | ||
|
||
#.rst | ||
# FindPCRE2 | ||
# ~~~~~~~~~ | ||
# Copyright (C) 2017-2018, Hiroshi Miura | ||
# | ||
# Find the native PCRE2 headers and libraries. | ||
|
||
find_path(PCRE2_INCLUDE_DIR NAMES pcre2.h) | ||
find_library(PCRE2-8_LIBRARY NAMES pcre2-8 pcre2-8d pcre2-8-static pcre2-8-staticd NAMES_PER_DIR) | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(PCRE2 | ||
REQUIRED_VARS PCRE2-8_LIBRARY PCRE2_INCLUDE_DIR) | ||
mark_as_advanced(PCRE2_INCLUDE_DIR PCRE2-8_LIBRARY) | ||
if(PCRE2_FOUND) | ||
list(APPEND PCRE2_LIBRARIES "${PCRE2-8_LIBRARY}") | ||
set(PCRE2_INCLUDE_DIRS "${PCRE2_INCLUDE_DIR}") | ||
if(NOT TARGET PCRE2::PCRE2-8) | ||
add_library(PCRE2::PCRE2-8 UNKNOWN IMPORTED) | ||
set_target_properties(PCRE2::PCRE2-8 PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${PCRE2_INCLUDE_DIR}" | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${PCRE2-8_LIBRARY}") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters