Group :: Gráficos
RPM: blender
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: blender-2.66-alt-pcre.patch
Download
Download
diff --git a/build_files/cmake/Modules/FindPCRE.cmake b/build_files/cmake/Modules/FindPCRE.cmake
index 1fd56dc1234..c0a0d48e5fe 100644
--- a/build_files/cmake/Modules/FindPCRE.cmake
+++ b/build_files/cmake/Modules/FindPCRE.cmake
@@ -34,7 +34,17 @@ SET(_pcre_SEARCH_DIRS
/opt/local # DarwinPorts
)
+if (NOT WIN32)
+ # use pkg-config to get the directories and then use these values
+ # in the FIND_PATH() and FIND_LIBRARY() calls
+ find_package(PkgConfig)
+ pkg_check_modules(PCRE libpcre)
+endif (NOT WIN32)
+
FIND_PATH(PCRE_INCLUDE_DIR pcre.h
+ PATHS
+ ${PCRE_INCLUDEDIR}
+ ${PCRE_INCLUDE_DIRS}
HINTS
${_pcre_SEARCH_DIRS}
PATH_SUFFIXES
@@ -44,6 +54,9 @@ FIND_PATH(PCRE_INCLUDE_DIR pcre.h
FIND_LIBRARY(PCRE_LIBRARY
NAMES
pcre
+ PATHS
+ ${PCRE_LIBDIR}
+ ${PCRE_LIBRARY_DIRS}
HINTS
${_pcre_SEARCH_DIRS}
PATH_SUFFIXES