summaryrefslogtreecommitdiff
path: root/3rdparty/pcre
diff options
context:
space:
mode:
authorflaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-07-10 15:29:57 +0000
committerflaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-07-10 15:29:57 +0000
commitf817e3714747b39a364e99c536e0b802b24fd2c3 (patch)
tree4feb82dd35e6d4b647dde3716f3fb2463aef0398 /3rdparty/pcre
parentee66778144c8a069a04d5f77ec73dcab973c61d0 (diff)
downloadhercules-f817e3714747b39a364e99c536e0b802b24fd2c3.tar.gz
hercules-f817e3714747b39a364e99c536e0b802b24fd2c3.tar.bz2
hercules-f817e3714747b39a364e99c536e0b802b24fd2c3.tar.xz
hercules-f817e3714747b39a364e99c536e0b802b24fd2c3.zip
* CMake: lowered required version to 2.8.3 and moved custom cmake modules to 3rdparty/cmake.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14897 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to '3rdparty/pcre')
-rw-r--r--3rdparty/pcre/CMakeLists.txt1
-rw-r--r--3rdparty/pcre/FindPCRE.cmake35
2 files changed, 0 insertions, 36 deletions
diff --git a/3rdparty/pcre/CMakeLists.txt b/3rdparty/pcre/CMakeLists.txt
index 70448d40e..57465a46c 100644
--- a/3rdparty/pcre/CMakeLists.txt
+++ b/3rdparty/pcre/CMakeLists.txt
@@ -39,7 +39,6 @@ endif( WIN32 )
# system
#
message( STATUS "Detecting system PCRE" )
-set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH} )
unset( PCRE_LIBRARIES CACHE )
unset( PCRE_INCLUDE_DIRS CACHE )
find_package( PCRE )
diff --git a/3rdparty/pcre/FindPCRE.cmake b/3rdparty/pcre/FindPCRE.cmake
deleted file mode 100644
index cb4d9177b..000000000
--- a/3rdparty/pcre/FindPCRE.cmake
+++ /dev/null
@@ -1,35 +0,0 @@
-# - Find pcre
-# Find the native PCRE includes and library
-#
-# PCRE_INCLUDE_DIRS - where to find pcre.h
-# PCRE_LIBRARIES - List of libraries when using pcre.
-# PCRE_FOUND - True if pcre found.
-
-
-find_path( PCRE_INCLUDE_DIR pcre.h )
-
-set( PCRE_NAMES pcre )
-find_library( PCRE_LIBRARY NAMES ${PCRE_NAMES} )
-mark_as_advanced( PCRE_LIBRARY PCRE_INCLUDE_DIR )
-
-if( PCRE_INCLUDE_DIR AND EXISTS "${PCRE_INCLUDE_DIR}/pcre.h" )
- file( STRINGS "${PCRE_INCLUDE_DIR}/pcre.h" PCRE_H REGEX "^#define[ \t]+PCRE_M[A-Z]+[ \t]+[0-9]+.*$" )
- string( REGEX REPLACE "^.*PCRE_MAJOR[ \t]+([0-9]+).*$" "\\1" PCRE_MAJOR "${PCRE_H}" )
- string( REGEX REPLACE "^.*PCRE_MINOR[ \t]+([0-9]+).*$" "\\1" PCRE_MINOR "${PCRE_H}" )
-
- set( PCRE_VERSION_STRING "${PCRE_MAJOR}.${PCRE_MINOR}" )
- set( PCRE_VERSION_MAJOR "${PCRE_MAJOR}" )
- set( PCRE_VERSION_MINOR "${PCRE_MINOR}" )
-endif()
-
-# handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if
-# all listed variables are TRUE
-include( FindPackageHandleStandardArgs )
-FIND_PACKAGE_HANDLE_STANDARD_ARGS( PCRE
- REQUIRED_VARS PCRE_LIBRARY PCRE_INCLUDE_DIR
- VERSION_VAR PCRE_VERSION_STRING )
-
-if( PCRE_FOUND )
- set( PCRE_LIBRARIES ${PCRE_LIBRARY} )
- set( PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR} )
-endif()