Commit 9f21f404 authored by Jan Möbius's avatar Jan Möbius

dos2unix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10703 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 07f711f2
This diff is collapsed.
# - Try to find PCRE # - Try to find PCRE
# Once done this will define # Once done this will define
# #
# PCRE_FOUND - system has PCRE # PCRE_FOUND - system has PCRE
# PCRE_INCLUDE_DIR - the PCRE include directory # PCRE_INCLUDE_DIR - the PCRE include directory
# PCRE_LIBRARY - Link these to use PCRE # PCRE_LIBRARY - Link these to use PCRE
# #
IF (PCRE_INCLUDE_DIRS) IF (PCRE_INCLUDE_DIRS)
# Already in cache, be silent # Already in cache, be silent
SET(PCRE_FIND_QUIETLY TRUE) SET(PCRE_FIND_QUIETLY TRUE)
ENDIF (PCRE_INCLUDE_DIRS) ENDIF (PCRE_INCLUDE_DIRS)
FIND_PATH( PCRE_INCLUDE_DIR pcre.h FIND_PATH( PCRE_INCLUDE_DIR pcre.h
PATHS "/usr/include" "C:/libs/PCRE/include") PATHS "/usr/include" "C:/libs/PCRE/include")
if( WIN32 ) if( WIN32 )
FIND_LIBRARY( PCRE_LIBRARY FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp.lib NAMES pcrecpp.lib
PATHS "C:/libs/PCRE/lib") PATHS "C:/libs/PCRE/lib")
GET_FILENAME_COMPONENT( PCRE_LIBRARY_DIR ${PCRE_LIBRARY} PATH )
else (WIN32) # Store the library dir. May be used for linking to dll!
GET_FILENAME_COMPONENT( PCRE_LIBRARY_DIR ${PCRE_LIBRARY} PATH )
FIND_LIBRARY( PCRE_LIBRARY else (WIN32)
NAMES pcrecpp
PATHS /lib /usr/lib /usr/local/lib ) FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp
endif( WIN32) PATHS /lib /usr/lib /usr/local/lib )
endif( WIN32)
IF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET(PCRE_FOUND TRUE)
ELSE (PCRE_INCLUDE_DIR AND PCRE_LIBRARY) IF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET( PCRE_FOUND FALSE ) SET(PCRE_FOUND TRUE)
ENDIF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY) ELSE (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET( PCRE_FOUND FALSE )
ENDIF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment