From c926f96b573c3a4182078603e9c37d7c375a442f Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 31 Jan 2008 20:48:09 +0000 Subject: Fix problem when pcre is installed after a first configure svn path=/trunk/KDE/kdelibs/; revision=769201 --- modules/FindPCRE.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules') diff --git a/modules/FindPCRE.cmake b/modules/FindPCRE.cmake index e18b109d..b39d8875 100644 --- a/modules/FindPCRE.cmake +++ b/modules/FindPCRE.cmake @@ -11,10 +11,10 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -if (PCRE_INCLUDE_DIR AND PCRE_LIBRARIES AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY) +if (PCRE_INCLUDE_DIR AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY) # Already in cache, be silent set(PCRE_FIND_QUIETLY TRUE) -endif (PCRE_INCLUDE_DIR AND PCRE_LIBRARIES AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY) +endif (PCRE_INCLUDE_DIR AND PCRE_PCREPOSIX_LIBRARY AND PCRE_PCRE_LIBRARY) FIND_PATH(PCRE_INCLUDE_DIR pcre.h PATH_SUFFIXES pcre) @@ -22,9 +22,9 @@ 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") - include(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_LIBRARIES ) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE DEFAULT_MSG PCRE_INCLUDE_DIR PCRE_PCRE_LIBRARY PCRE_PCREPOSIX_LIBRARY ) + +set(PCRE_LIBRARIES ${PCRE_PCRE_LIBRARY} ${PCRE_PCREPOSIX_LIBRARY} CACHE STRING "The libraries needed to use PCRE") MARK_AS_ADVANCED(PCRE_INCLUDE_DIR PCRE_LIBRARIES PCRE_PCREPOSIX_LIBRARY PCRE_PCRE_LIBRARY) -- cgit v1.2.1