aboutsummaryrefslogtreecommitdiff
path: root/modules/FindPCRE.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindPCRE.cmake')
-rw-r--r--modules/FindPCRE.cmake32
1 files changed, 16 insertions, 16 deletions
diff --git a/modules/FindPCRE.cmake b/modules/FindPCRE.cmake
index 5a78c6c1..fbca4eb8 100644
--- a/modules/FindPCRE.cmake
+++ b/modules/FindPCRE.cmake
@@ -32,21 +32,21 @@ FIND_LIBRARY(PCRE_PCREPOSIX_LIBRARY NAMES pcreposix
${GNUWIN32_DIR}/lib
)
-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)
+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)
MARK_AS_ADVANCED(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCREPOSIX_LIBRARY PCRE_PCRE_LIBRARY)