aboutsummaryrefslogtreecommitdiff
path: root/modules/FindPCRE.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindPCRE.cmake')
-rw-r--r--modules/FindPCRE.cmake21
1 files changed, 5 insertions, 16 deletions
diff --git a/modules/FindPCRE.cmake b/modules/FindPCRE.cmake
index 27ea971d..8989130f 100644
--- a/modules/FindPCRE.cmake
+++ b/modules/FindPCRE.cmake
@@ -16,22 +16,11 @@ if (PCRE_INCLUDE_DIR AND PCRE_LIBRARIES)
set(PCRE_FIND_QUIETLY TRUE)
endif (PCRE_INCLUDE_DIR AND PCRE_LIBRARIES)
-FIND_PATH(PCRE_INCLUDE_DIR pcre.h
- /usr/include/
- /usr/local/include/
-)
-
-FIND_LIBRARY(PCRE_PCRE_LIBRARY NAMES pcre
- PATHS
- /usr/lib
- /usr/local/lib
-)
-
-FIND_LIBRARY(PCRE_PCREPOSIX_LIBRARY NAMES pcreposix
- PATHS
- /usr/lib
- /usr/local/lib
-)
+FIND_PATH(PCRE_INCLUDE_DIR pcre.h )
+
+FIND_LIBRARY(PCRE_PCRE_LIBRARY NAMES pcre)
+
+FIND_LIBRARY(PCRE_PCREPOSIX_LIBRARY NAMES pcreposix)
set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} ${PCRE_PCREPOSIX_LIBRARY} CACHE STRING "The libraries needed to use PCRE")