Allow for system pcre to take precedence.

This commit is contained in:
Jason Felds
2015-03-22 15:46:53 -04:00
parent ecbec126af
commit 33f183938e
4 changed files with 36 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
# Find pcre using standard tools.
# The following will be set:
# PCRE_INCLUDE_DIR
# PCRE_LIBRARY
# PCRE_FOUND
find_path(PCRE_INCLUDE_DIR NAMES pcre.h)
find_library(PCRE_LIBRARY NAMES pcre)
# Properly pass QUIETLY and REQUIRED.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_LIBRARY)
mark_as_advanced(PCRE_INCLUDE_DIR PCRE_LIBRARY)