diff options
Diffstat (limited to 'modules/FindPCRE.cmake')
| -rw-r--r-- | modules/FindPCRE.cmake | 15 | 
1 files changed, 2 insertions, 13 deletions
| diff --git a/modules/FindPCRE.cmake b/modules/FindPCRE.cmake index 8989130f..a3469e59 100644 --- a/modules/FindPCRE.cmake +++ b/modules/FindPCRE.cmake @@ -24,18 +24,7 @@ FIND_LIBRARY(PCRE_PCREPOSIX_LIBRARY NAMES pcreposix)  set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} ${PCRE_PCREPOSIX_LIBRARY} CACHE STRING "The libraries needed to use PCRE") -if (PCRE_INCLUDE_DIR AND PCRE_LIBRARIES) -   set(PCRE_FOUND TRUE) -endif (PCRE_INCLUDE_DIR AND PCRE_LIBRARIES) - -if (PCRE_FOUND) -   if (NOT PCRE_FIND_QUIETLY) -      message(STATUS "Found PCRE: ${PCRE_LIBRARIES}") -   endif (NOT PCRE_FIND_QUIETLY) -else (PCRE_FOUND) -   if (PCRE_FIND_REQUIRED) -      message(FATAL_ERROR "Could NOT find PCRE") -   endif (PCRE_FIND_REQUIRED) -endif (PCRE_FOUND) +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_LIBRARIES )  MARK_AS_ADVANCED(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCREPOSIX_LIBRARY PCRE_PCRE_LIBRARY) | 
