X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a46b3e6c423da020937c547ab7983925e4b589e0..b81e550f412b7dc203553e16608111b7b6649921:/buildtools/Cmake/Modules/FindPCRE.cmake diff --git a/buildtools/Cmake/Modules/FindPCRE.cmake b/buildtools/Cmake/Modules/FindPCRE.cmake index 7a7e6c2c94..45eddfe299 100644 --- a/buildtools/Cmake/Modules/FindPCRE.cmake +++ b/buildtools/Cmake/Modules/FindPCRE.cmake @@ -2,7 +2,8 @@ find_library(PATH_PCRE_LIB NAMES pcre HINTS $ENV{LD_LIBRARY_PATH} - PATH_SUFFIXES lib/ + $ENV{PCRE_LIBRARY_PATH} + PATH_SUFFIXES lib/ GnuWin32/lib PATHS /opt /opt/local @@ -13,7 +14,8 @@ find_library(PATH_PCRE_LIB find_path(PATH_PCRE_H "pcre.h" HINTS $ENV{LD_LIBRARY_PATH} - PATH_SUFFIXES include/ + $ENV{PCRE_LIBRARY_PATH} + PATH_SUFFIXES include/ GnuWin32/include PATHS /opt /opt/local @@ -50,4 +52,7 @@ if(PATH_PCRE_LIB) message(STATUS "Looking for lib pcre - found") else(PATH_PCRE_LIB) message(STATUS "Looking for lib pcre - not found") -endif(PATH_PCRE_LIB) \ No newline at end of file +endif(PATH_PCRE_LIB) + +mark_as_advanced(PATH_PCRE_H) +mark_as_advanced(PATH_PCRE_LIB) \ No newline at end of file