/[pcre]/code/trunk/CMakeLists.txt
ViewVC logotype

Diff of /code/trunk/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 475 by ph10, Sat Jan 2 18:21:30 2010 UTC revision 1234 by ph10, Sat Dec 8 16:35:42 2012 UTC
# Line 36  Line 36 
36  # 2009-04-11 PH applied Christian Ehrlicher's patch to show compiler flags that  # 2009-04-11 PH applied Christian Ehrlicher's patch to show compiler flags that
37  #            are set by specifying a release type.  #            are set by specifying a release type.
38  # 2010-01-02 PH added test for stdint.h  # 2010-01-02 PH added test for stdint.h
39    # 2010-03-02 PH added test for inttypes.h
40    # 2011-08-01 PH added PCREGREP_BUFSIZE
41    # 2011-08-22 PH added PCRE_SUPPORT_JIT
42    # 2011-09-06 PH modified WIN32 ADD_TEST line as suggested by Sergey Cherepanov
43    # 2011-09-06 PH added PCRE_SUPPORT_PCREGREP_JIT
44    # 2011-10-04 Sheri added support for including coff data in windows shared libraries
45    #            compiled with MINGW if pcre.rc and/or pcreposix.rc are placed in
46    #            the source dir by the user prior to building
47    # 2011-10-04 Sheri changed various add_test's to use exes' location built instead
48    #            of DEBUG location only (likely only matters in MSVC)
49    # 2011-10-04 Sheri added scripts to provide needed variables to RunTest and
50    #            RunGrepTest (used for UNIX and Msys)
51    # 2011-10-04 Sheri added scripts to provide needed variables and to execute
52    #            RunTest.bat in Win32 (for effortless testing with "make test")
53    # 2011-10-04 Sheri Increased minimum required cmake version
54    # 2012-01-06 PH removed pcre_info.c and added pcre_string_utils.c
55    # 2012-01-10 Zoltan Herczeg added libpcre16 support
56    # 2012-01-13 Stephen Kelly added out of source build support
57    # 2012-01-17 PH applied Stephen Kelly's patch to parse the version data out
58    #            of the configure.ac file
59    # 2012-02-26 PH added support for libedit
60    # 2012-09-06 PH added support for PCRE_EBCDIC_NL25
61    # 2012-09-08 ChPe added PCRE32 support
62    # 2012-10-23 PH added support for VALGRIND and GCOV
63    # 2012-12-08 PH added patch from Daniel Richard G to quash some MSVC warnings
64    
65  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
66    
67  CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)  # Increased minimum to 2.8.0 to support newer add_test features
68    
69    CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
70    
71  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
72    
# Line 47  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_D Line 74  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_D
74  FIND_PACKAGE( BZip2 )  FIND_PACKAGE( BZip2 )
75  FIND_PACKAGE( ZLIB )  FIND_PACKAGE( ZLIB )
76  FIND_PACKAGE( Readline )  FIND_PACKAGE( Readline )
77    FIND_PACKAGE( Editline )
78    
79  # Configuration checks  # Configuration checks
80    
# Line 57  INCLUDE(CheckTypeSize) Line 85  INCLUDE(CheckTypeSize)
85    
86  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)
87  CHECK_INCLUDE_FILE(stdint.h     HAVE_STDINT_H)  CHECK_INCLUDE_FILE(stdint.h     HAVE_STDINT_H)
88    CHECK_INCLUDE_FILE(inttypes.h   HAVE_INTTYPES_H)
89  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)
90  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)
91  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)
# Line 83  CHECK_TYPE_SIZE("unsigned long long" Line 112  CHECK_TYPE_SIZE("unsigned long long"
112  SET(BUILD_SHARED_LIBS OFF CACHE BOOL  SET(BUILD_SHARED_LIBS OFF CACHE BOOL
113      "Build shared libraries instead of static ones.")      "Build shared libraries instead of static ones.")
114    
115    OPTION(PCRE_BUILD_PCRE8 "Build 8 bit PCRE library" ON)
116    
117    OPTION(PCRE_BUILD_PCRE16 "Build 16 bit PCRE library" OFF)
118    
119    OPTION(PCRE_BUILD_PCRE32 "Build 32 bit PCRE library" OFF)
120    
121  OPTION(PCRE_BUILD_PCRECPP "Build the PCRE C++ library (pcrecpp)." ON)  OPTION(PCRE_BUILD_PCRECPP "Build the PCRE C++ library (pcrecpp)." ON)
122    
123  SET(PCRE_EBCDIC OFF CACHE BOOL  SET(PCRE_EBCDIC OFF CACHE BOOL
124      "Use EBCDIC coding instead of ASCII. (This is rarely used outside of mainframe systems)")      "Use EBCDIC coding instead of ASCII. (This is rarely used outside of mainframe systems.)")
125    
126    SET(PCRE_EBCDIC_NL25 OFF CACHE BOOL
127        "Use 0x25 as EBCDIC NL character instead of 0x15; implies EBCDIC.")
128    
129  SET(PCRE_LINK_SIZE "2" CACHE STRING  SET(PCRE_LINK_SIZE "2" CACHE STRING
130      "Internal link size (2, 3 or 4 allowed). See LINK_SIZE in config.h.in for details.")      "Internal link size (2, 3 or 4 allowed). See LINK_SIZE in config.h.in for details.")
# Line 97  SET(PCRE_MATCH_LIMIT "10000000" CACHE ST Line 135  SET(PCRE_MATCH_LIMIT "10000000" CACHE ST
135  SET(PCRE_MATCH_LIMIT_RECURSION "MATCH_LIMIT" CACHE STRING  SET(PCRE_MATCH_LIMIT_RECURSION "MATCH_LIMIT" CACHE STRING
136      "Default limit on internal recursion. See MATCH_LIMIT_RECURSION in config.h.in for details.")      "Default limit on internal recursion. See MATCH_LIMIT_RECURSION in config.h.in for details.")
137    
138    SET(PCREGREP_BUFSIZE "20480" CACHE STRING
139        "Buffer size parameter for pcregrep. See PCREGREP_BUFSIZE in config.h.in for details.")
140    
141  SET(PCRE_NEWLINE "LF" CACHE STRING  SET(PCRE_NEWLINE "LF" CACHE STRING
142      "What to recognize as a newline (one of CR, LF, CRLF, ANY, ANYCRLF).")      "What to recognize as a newline (one of CR, LF, CRLF, ANY, ANYCRLF).")
143    
# Line 106  SET(PCRE_NO_RECURSE OFF CACHE BOOL Line 147  SET(PCRE_NO_RECURSE OFF CACHE BOOL
147  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING
148      "Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.")      "Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.")
149    
150  SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL  SET(PCRE_SUPPORT_JIT OFF CACHE BOOL
151      "Enable support for Unicode properties. (If set, UTF-8 support will be enabled as well)")      "Enable support for Just-in-time compiling.")
152    
153    SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL
154        "Enable use of Just-in-time compiling in pcregrep.")
155    
156    SET(PCRE_SUPPORT_UTF OFF CACHE BOOL
157        "Enable support for Unicode Transformation Format (UTF-8/UTF-16/UTF-32) encoding.")
158    
159  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL  SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
160      "Enable support for the Unicode UTF-8 encoding.")      "Enable support for Unicode properties (if set, UTF support will be enabled as well).")
161    
162  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
163      "ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks")      "ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks")
164    
165    SET(PCRE_SUPPORT_VALGRIND OFF CACHE BOOL
166        "Enable Valgrind support.")
167    
168    SET(PCRE_SUPPORT_COVERAGE OFF CACHE BOOL
169        "Enable code coverage support using gcov.")
170    
171  OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)  OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)
172  OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)  OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)
173  OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)  OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)
174    
 IF (PCRE_BUILD_TESTS)  
   IF (NOT PCRE_BUILD_PCREGREP)  
     MESSAGE(STATUS "** Building tests requires pcregrep: PCRE_BUILD_PCREGREP forced ON")  
     SET(PCRE_BUILD_PCREGREP ON)  
   ENDIF(NOT PCRE_BUILD_PCREGREP)  
 ENDIF(PCRE_BUILD_TESTS)  
   
175  IF (MINGW)  IF (MINGW)
176    OPTION(NON_STANDARD_LIB_PREFIX    OPTION(NON_STANDARD_LIB_PREFIX
177           "ON=Shared libraries built in mingw will be named pcre.dll, etc., instead of libpcre.dll, etc."           "ON=Shared libraries built in mingw will be named pcre.dll, etc., instead of libpcre.dll, etc."
# Line 152  IF(PCRE_SUPPORT_LIBZ) Line 198  IF(PCRE_SUPPORT_LIBZ)
198    INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})    INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
199  ENDIF(PCRE_SUPPORT_LIBZ)  ENDIF(PCRE_SUPPORT_LIBZ)
200    
201    # editline lib
202    IF(EDITLINE_FOUND)
203      OPTION (PCRE_SUPPORT_LIBEDIT  "Enable support for linking pcretest with libedit." OFF)
204    ENDIF(EDITLINE_FOUND)
205    IF(PCRE_SUPPORT_LIBEDIT)
206      INCLUDE_DIRECTORIES(${EDITLINE_INCLUDE_DIR})
207    ENDIF(PCRE_SUPPORT_LIBEDIT)
208    
209  # readline lib  # readline lib
210  IF(READLINE_FOUND)  IF(READLINE_FOUND)
211    OPTION (PCRE_SUPPORT_LIBREADLINE  "Enable support for linking pcretest with libreadline." ON)    OPTION (PCRE_SUPPORT_LIBREADLINE  "Enable support for linking pcretest with libreadline." ON)
# Line 188  IF(NOT BUILD_SHARED_LIBS) Line 242  IF(NOT BUILD_SHARED_LIBS)
242          SET(PCRE_STATIC 1)          SET(PCRE_STATIC 1)
243  ENDIF(NOT BUILD_SHARED_LIBS)  ENDIF(NOT BUILD_SHARED_LIBS)
244    
245    IF(NOT PCRE_BUILD_PCRE8 AND NOT PCRE_BUILD_PCRE16 AND NOT PCRE_BUILD_PCRE32)
246            MESSAGE(FATAL_ERROR "At least one of PCRE_BUILD_PCRE8, PCRE_BUILD_PCRE16 or PCRE_BUILD_PCRE32 must be enabled")
247    ENDIF(NOT PCRE_BUILD_PCRE8 AND NOT PCRE_BUILD_PCRE16 AND NOT PCRE_BUILD_PCRE32)
248    
249    IF(PCRE_BUILD_PCRE8)
250            SET(SUPPORT_PCRE8 1)
251    ENDIF(PCRE_BUILD_PCRE8)
252    
253    IF(PCRE_BUILD_PCRE16)
254            SET(SUPPORT_PCRE16 1)
255    ENDIF(PCRE_BUILD_PCRE16)
256    
257    IF(PCRE_BUILD_PCRE32)
258            SET(SUPPORT_PCRE32 1)
259    ENDIF(PCRE_BUILD_PCRE32)
260    
261    IF(PCRE_BUILD_PCRECPP AND NOT PCRE_BUILD_PCRE8)
262            MESSAGE(STATUS "** PCRE_BUILD_PCRE8 must be enabled for the C++ library support")
263            SET(PCRE_BUILD_PCRECPP OFF)
264    ENDIF(PCRE_BUILD_PCRECPP AND NOT PCRE_BUILD_PCRE8)
265    
266    IF(PCRE_BUILD_PCREGREP AND NOT PCRE_BUILD_PCRE8)
267            MESSAGE(STATUS "** PCRE_BUILD_PCRE8 must be enabled for the pcregrep program")
268            SET(PCRE_BUILD_PCREGREP OFF)
269    ENDIF(PCRE_BUILD_PCREGREP AND NOT PCRE_BUILD_PCRE8)
270    
271    IF(PCRE_SUPPORT_LIBREADLINE AND PCRE_SUPPORT_LIBEDIT)
272            MESSAGE(FATAL_ERROR "Only one of libreadline or libeditline can be specified")
273    ENDIF(PCRE_SUPPORT_LIBREADLINE AND PCRE_SUPPORT_LIBEDIT)
274    
275  IF(PCRE_SUPPORT_BSR_ANYCRLF)  IF(PCRE_SUPPORT_BSR_ANYCRLF)
276          SET(BSR_ANYCRLF 1)          SET(BSR_ANYCRLF 1)
277  ENDIF(PCRE_SUPPORT_BSR_ANYCRLF)  ENDIF(PCRE_SUPPORT_BSR_ANYCRLF)
278    
279  IF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)  IF(PCRE_SUPPORT_UTF OR PCRE_SUPPORT_UNICODE_PROPERTIES)
280          SET(SUPPORT_UTF8 1)          SET(SUPPORT_UTF 1)
281  ENDIF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)          SET(PCRE_SUPPORT_UTF ON)
282    ENDIF(PCRE_SUPPORT_UTF OR PCRE_SUPPORT_UNICODE_PROPERTIES)
283    
284  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)  IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
285          SET(SUPPORT_UCP 1)          SET(SUPPORT_UCP 1)
286  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
287    
288    IF(PCRE_SUPPORT_JIT)
289            SET(SUPPORT_JIT 1)
290    ENDIF(PCRE_SUPPORT_JIT)
291    
292    IF(PCRE_SUPPORT_PCREGREP_JIT)
293            SET(SUPPORT_PCREGREP_JIT 1)
294    ENDIF(PCRE_SUPPORT_PCREGREP_JIT)
295    
296    IF(PCRE_SUPPORT_VALGRIND)
297            SET(SUPPORT_VALGRIND 1)
298    ENDIF(PCRE_SUPPORT_VALGRIND)
299    
300    IF(PCRE_SUPPORT_COVERAGE)
301            SET(SUPPORT_GCOV 1)
302            IF(NOT CMAKE_COMPILER_IS_GNUCC)
303                MESSAGE(FATAL_ERROR "Code coverage reports can only be generated when using GCC")
304            ENDIF(NOT CMAKE_COMPILER_IS_GNUCC)
305    ENDIF(PCRE_SUPPORT_COVERAGE)
306    
307  # This next one used to contain  # This next one used to contain
308  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
309  # but I was advised to add the NCURSES test as well, along with  # but I was advised to add the NCURSES test as well, along with
# Line 211  IF(PCRE_SUPPORT_LIBREADLINE) Line 315  IF(PCRE_SUPPORT_LIBREADLINE)
315          SET(PCRETEST_LIBS ${READLINE_LIBRARY} ${NCURSES_LIBRARY})          SET(PCRETEST_LIBS ${READLINE_LIBRARY} ${NCURSES_LIBRARY})
316  ENDIF(PCRE_SUPPORT_LIBREADLINE)  ENDIF(PCRE_SUPPORT_LIBREADLINE)
317    
318    # libedit is a plug-compatible alternative to libreadline
319    
320    IF(PCRE_SUPPORT_LIBEDIT)
321            SET(SUPPORT_LIBEDIT 1)
322            SET(PCRETEST_LIBS ${EDITLINE_LIBRARY} ${NCURSES_LIBRARY})
323    ENDIF(PCRE_SUPPORT_LIBEDIT)
324    
325  IF(PCRE_SUPPORT_LIBZ)  IF(PCRE_SUPPORT_LIBZ)
326          SET(SUPPORT_LIBZ 1)          SET(SUPPORT_LIBZ 1)
327          SET(PCREGREP_LIBS ${PCREGREP_LIBS} ${ZLIB_LIBRARIES})          SET(PCREGREP_LIBS ${PCREGREP_LIBS} ${ZLIB_LIBRARIES})
# Line 245  ENDIF(NEWLINE STREQUAL "") Line 356  ENDIF(NEWLINE STREQUAL "")
356    
357  IF(PCRE_EBCDIC)  IF(PCRE_EBCDIC)
358          SET(EBCDIC 1)          SET(EBCDIC 1)
359    IF(PCRE_NEWLINE STREQUAL "LF")
360            SET(NEWLINE "21")
361    ENDIF(PCRE_NEWLINE STREQUAL "LF")
362    IF(PCRE_NEWLINE STREQUAL "CRLF")
363            SET(NEWLINE "3349")
364    ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
365  ENDIF(PCRE_EBCDIC)  ENDIF(PCRE_EBCDIC)
366    
367    IF(PCRE_EBCDIC_NL25)
368            SET(EBCDIC 1)
369            SET(EBCDIC_NL25 1)
370    IF(PCRE_NEWLINE STREQUAL "LF")
371            SET(NEWLINE "37")
372    ENDIF(PCRE_NEWLINE STREQUAL "LF")
373    IF(PCRE_NEWLINE STREQUAL "CRLF")
374            SET(NEWLINE "3365")
375    ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
376    ENDIF(PCRE_EBCDIC_NL25)
377    
378  IF(PCRE_NO_RECURSE)  IF(PCRE_NO_RECURSE)
379          SET(NO_RECURSE 1)          SET(NO_RECURSE 1)
380  ENDIF(PCRE_NO_RECURSE)  ENDIF(PCRE_NO_RECURSE)
# Line 256  CONFIGURE_FILE(config-cmake.h.in Line 384  CONFIGURE_FILE(config-cmake.h.in
384                 ${PROJECT_BINARY_DIR}/config.h                 ${PROJECT_BINARY_DIR}/config.h
385                 @ONLY)                 @ONLY)
386    
387  CONFIGURE_FILE(pcre.h.generic  # Parse version numbers and date out of configure.ac
388    
389    file(STRINGS ${PROJECT_SOURCE_DIR}/configure.ac
390      configure_lines
391      LIMIT_COUNT 50 # Read only the first 50 lines of the file
392    )
393    
394    set(SEARCHED_VARIABLES "pcre_major" "pcre_minor" "pcre_prerelease" "pcre_date")
395    foreach(configure_line ${configure_lines})
396        foreach(_substitution_variable ${SEARCHED_VARIABLES})
397            string(TOUPPER ${_substitution_variable} _substitution_variable_upper)
398            if (NOT ${_substitution_variable_upper})
399                string(REGEX MATCH "m4_define\\(${_substitution_variable}, \\[(.*)\\]" MACTHED_STRING ${configure_line})
400                if (CMAKE_MATCH_1)
401                    set(${_substitution_variable_upper} ${CMAKE_MATCH_1})
402                endif()
403            endif()
404        endforeach()
405    endforeach()
406    
407    CONFIGURE_FILE(pcre.h.in
408                 ${PROJECT_BINARY_DIR}/pcre.h                 ${PROJECT_BINARY_DIR}/pcre.h
409                 COPYONLY)                 @ONLY)
410    
411  # What about pcre-config and libpcre.pc?  # What about pcre-config and libpcre.pc?
412    
# Line 297  ENDIF(PCRE_REBUILD_CHARTABLES) Line 445  ENDIF(PCRE_REBUILD_CHARTABLES)
445    
446  SET(PCRE_HEADERS ${PROJECT_BINARY_DIR}/pcre.h)  SET(PCRE_HEADERS ${PROJECT_BINARY_DIR}/pcre.h)
447    
448    IF(PCRE_BUILD_PCRE8)
449  SET(PCRE_SOURCES  SET(PCRE_SOURCES
450    ${PROJECT_BINARY_DIR}/pcre_chartables.c    pcre_byte_order.c
451      pcre_chartables.c
452    pcre_compile.c    pcre_compile.c
453    pcre_config.c    pcre_config.c
454    pcre_dfa_exec.c    pcre_dfa_exec.c
# Line 306  SET(PCRE_SOURCES Line 456  SET(PCRE_SOURCES
456    pcre_fullinfo.c    pcre_fullinfo.c
457    pcre_get.c    pcre_get.c
458    pcre_globals.c    pcre_globals.c
459    pcre_info.c    pcre_jit_compile.c
   pcre_newline.c  
460    pcre_maketables.c    pcre_maketables.c
461      pcre_newline.c
462    pcre_ord2utf8.c    pcre_ord2utf8.c
463    pcre_refcount.c    pcre_refcount.c
464      pcre_string_utils.c
465    pcre_study.c    pcre_study.c
466    pcre_tables.c    pcre_tables.c
   pcre_try_flipped.c  
467    pcre_ucd.c    pcre_ucd.c
468    pcre_valid_utf8.c    pcre_valid_utf8.c
469    pcre_version.c    pcre_version.c
# Line 324  SET(PCREPOSIX_HEADERS pcreposix.h) Line 474  SET(PCREPOSIX_HEADERS pcreposix.h)
474    
475  SET(PCREPOSIX_SOURCES pcreposix.c)  SET(PCREPOSIX_SOURCES pcreposix.c)
476    
477    ENDIF(PCRE_BUILD_PCRE8)
478    
479    IF(PCRE_BUILD_PCRE16)
480    SET(PCRE16_SOURCES
481      pcre16_byte_order.c
482      pcre16_chartables.c
483      pcre16_compile.c
484      pcre16_config.c
485      pcre16_dfa_exec.c
486      pcre16_exec.c
487      pcre16_fullinfo.c
488      pcre16_get.c
489      pcre16_globals.c
490      pcre16_jit_compile.c
491      pcre16_maketables.c
492      pcre16_newline.c
493      pcre16_ord2utf16.c
494      pcre16_refcount.c
495      pcre16_string_utils.c
496      pcre16_study.c
497      pcre16_tables.c
498      pcre16_ucd.c
499      pcre16_utf16_utils.c
500      pcre16_valid_utf16.c
501      pcre16_version.c
502      pcre16_xclass.c
503    )
504    ENDIF(PCRE_BUILD_PCRE16)
505    
506    IF(PCRE_BUILD_PCRE32)
507    SET(PCRE32_SOURCES
508      pcre32_byte_order.c
509      pcre32_chartables.c
510      pcre32_compile.c
511      pcre32_config.c
512      pcre32_dfa_exec.c
513      pcre32_exec.c
514      pcre32_fullinfo.c
515      pcre32_get.c
516      pcre32_globals.c
517      pcre32_jit_compile.c
518      pcre32_maketables.c
519      pcre32_newline.c
520      pcre32_ord2utf32.c
521      pcre32_refcount.c
522      pcre32_string_utils.c
523      pcre32_study.c
524      pcre32_tables.c
525      pcre32_ucd.c
526      pcre32_utf32_utils.c
527      pcre32_valid_utf32.c
528      pcre32_version.c
529      pcre32_xclass.c
530    )
531    ENDIF(PCRE_BUILD_PCRE32)
532    
533    IF(MINGW AND NOT PCRE_STATIC)
534    IF (EXISTS ${PROJECT_SOURCE_DIR}/pcre.rc)
535    ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_SOURCE_DIR}/pcre.o
536    PRE-LINK
537    COMMAND windres ARGS pcre.rc pcre.o
538    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
539    COMMENT Using pcre coff info in mingw build)
540    SET(PCRE_SOURCES
541      ${PCRE_SOURCES} ${PROJECT_SOURCE_DIR}/pcre.o
542    )
543    ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/pcre.rc)
544    IF (EXISTS ${PROJECT_SOURCE_DIR}/pcreposix.rc)
545    ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_SOURCE_DIR}/pcreposix.o
546    PRE-LINK
547    COMMAND windres ARGS pcreposix.rc pcreposix.o
548    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
549    COMMENT Using pcreposix coff info in mingw build)
550    SET(PCREPOSIX_SOURCES
551      ${PCREPOSIX_SOURCES} ${PROJECT_SOURCE_DIR}/pcreposix.o
552    )
553    ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/pcreposix.rc)
554    ENDIF(MINGW AND NOT PCRE_STATIC)
555    
556  SET(PCRECPP_HEADERS  SET(PCRECPP_HEADERS
557    pcrecpp.h    pcrecpp.h
558    pcre_scanner.h    pcre_scanner.h
# Line 342  SET(PCRECPP_SOURCES Line 571  SET(PCRECPP_SOURCES
571  ADD_DEFINITIONS(-DHAVE_CONFIG_H)  ADD_DEFINITIONS(-DHAVE_CONFIG_H)
572    
573  IF(MSVC)  IF(MSVC)
574          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
575  ENDIF(MSVC)  ENDIF(MSVC)
576    
577  SET(CMAKE_INCLUDE_CURRENT_DIR 1)  SET(CMAKE_INCLUDE_CURRENT_DIR 1)
# Line 356  SET(targets) Line 585  SET(targets)
585    
586  # Libraries  # Libraries
587  # pcre  # pcre
588    IF(PCRE_BUILD_PCRE8)
589  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
590  SET(targets ${targets} pcre)  SET(targets ${targets} pcre)
591  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
592  SET(targets ${targets} pcreposix)  SET(targets ${targets} pcreposix)
593  TARGET_LINK_LIBRARIES(pcreposix pcre)  TARGET_LINK_LIBRARIES(pcreposix pcre)
594    
595  IF(MINGW AND NOT PCRE_STATIC)  IF(MINGW AND NOT PCRE_STATIC)
596    IF(NON_STANDARD_LIB_PREFIX)    IF(NON_STANDARD_LIB_PREFIX)
597      SET_TARGET_PROPERTIES(pcre pcreposix      SET_TARGET_PROPERTIES(pcre pcreposix
# Line 375  IF(MINGW AND NOT PCRE_STATIC) Line 606  IF(MINGW AND NOT PCRE_STATIC)
606    ENDIF(NON_STANDARD_LIB_SUFFIX)    ENDIF(NON_STANDARD_LIB_SUFFIX)
607  ENDIF(MINGW AND NOT PCRE_STATIC)  ENDIF(MINGW AND NOT PCRE_STATIC)
608    
609    ENDIF(PCRE_BUILD_PCRE8)
610    
611    IF(PCRE_BUILD_PCRE16)
612    ADD_LIBRARY(pcre16 ${PCRE_HEADERS} ${PCRE16_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
613    SET(targets ${targets} pcre16)
614    
615    IF(MINGW AND NOT PCRE_STATIC)
616      IF(NON_STANDARD_LIB_PREFIX)
617        SET_TARGET_PROPERTIES(pcre16
618                            PROPERTIES PREFIX ""
619        )
620      ENDIF(NON_STANDARD_LIB_PREFIX)
621    
622      IF(NON_STANDARD_LIB_SUFFIX)
623        SET_TARGET_PROPERTIES(pcre16
624                            PROPERTIES SUFFIX "-0.dll"
625        )
626      ENDIF(NON_STANDARD_LIB_SUFFIX)
627    ENDIF(MINGW AND NOT PCRE_STATIC)
628    
629    ENDIF(PCRE_BUILD_PCRE16)
630    
631    IF(PCRE_BUILD_PCRE32)
632    ADD_LIBRARY(pcre32 ${PCRE_HEADERS} ${PCRE32_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
633    SET(targets ${targets} pcre32)
634    
635    IF(MINGW AND NOT PCRE_STATIC)
636      IF(NON_STANDARD_LIB_PREFIX)
637        SET_TARGET_PROPERTIES(pcre32
638                            PROPERTIES PREFIX ""
639        )
640      ENDIF(NON_STANDARD_LIB_PREFIX)
641    
642      IF(NON_STANDARD_LIB_SUFFIX)
643        SET_TARGET_PROPERTIES(pcre32
644                            PROPERTIES SUFFIX "-0.dll"
645        )
646      ENDIF(NON_STANDARD_LIB_SUFFIX)
647    ENDIF(MINGW AND NOT PCRE_STATIC)
648    
649    ENDIF(PCRE_BUILD_PCRE32)
650    
651  # pcrecpp  # pcrecpp
652  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
653    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})  ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
654  SET(targets ${targets} pcrecpp)  SET(targets ${targets} pcrecpp)
655    TARGET_LINK_LIBRARIES(pcrecpp pcre)  TARGET_LINK_LIBRARIES(pcrecpp pcre)
656    
657    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
658      IF(NON_STANDARD_LIB_PREFIX)      IF(NON_STANDARD_LIB_PREFIX)
# Line 415  IF(PCRE_BUILD_PCREGREP) Line 687  IF(PCRE_BUILD_PCREGREP)
687    TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})    TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})
688  ENDIF(PCRE_BUILD_PCREGREP)  ENDIF(PCRE_BUILD_PCREGREP)
689    
   
690  # Testing  # Testing
691  IF(PCRE_BUILD_TESTS)  IF(PCRE_BUILD_TESTS)
692    ENABLE_TESTING()    ENABLE_TESTING()
693    
694    ADD_EXECUTABLE(pcretest pcretest.c)    SET(PCRETEST_SOURCES pcretest.c)
695      IF(PCRE_BUILD_PCRE8)
696        LIST(APPEND PCRETEST_SOURCES pcre_printint.c)
697      ENDIF(PCRE_BUILD_PCRE8)
698      IF(PCRE_BUILD_PCRE16)
699        LIST(APPEND PCRETEST_SOURCES pcre16_printint.c)
700      ENDIF(PCRE_BUILD_PCRE16)
701      IF(PCRE_BUILD_PCRE32)
702        LIST(APPEND PCRETEST_SOURCES pcre32_printint.c)
703      ENDIF(PCRE_BUILD_PCRE32)
704    
705      ADD_EXECUTABLE(pcretest ${PCRETEST_SOURCES})
706    SET(targets ${targets} pcretest)    SET(targets ${targets} pcretest)
707    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})    IF(PCRE_BUILD_PCRE8)
708        LIST(APPEND PCRETEST_LIBS pcreposix pcre)
709      ENDIF(PCRE_BUILD_PCRE8)
710      IF(PCRE_BUILD_PCRE16)
711        LIST(APPEND PCRETEST_LIBS pcre16)
712      ENDIF(PCRE_BUILD_PCRE16)
713      IF(PCRE_BUILD_PCRE32)
714        LIST(APPEND PCRETEST_LIBS pcre32)
715      ENDIF(PCRE_BUILD_PCRE32)
716      TARGET_LINK_LIBRARIES(pcretest ${PCRETEST_LIBS})
717    
718      IF(PCRE_SUPPORT_JIT)
719        ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)
720        SET(targets ${targets} pcre_jit_test)
721        SET(PCRE_JIT_TEST_LIBS )
722        IF(PCRE_BUILD_PCRE8)
723          LIST(APPEND PCRE_JIT_TEST_LIBS pcre)
724        ENDIF(PCRE_BUILD_PCRE8)
725        IF(PCRE_BUILD_PCRE16)
726          LIST(APPEND PCRE_JIT_TEST_LIBS pcre16)
727        ENDIF(PCRE_BUILD_PCRE16)
728        IF(PCRE_BUILD_PCRE32)
729          LIST(APPEND PCRE_JIT_TEST_LIBS pcre32)
730        ENDIF(PCRE_BUILD_PCRE32)
731        TARGET_LINK_LIBRARIES(pcre_jit_test ${PCRE_JIT_TEST_LIBS})
732      ENDIF(PCRE_SUPPORT_JIT)
733    
734    IF(PCRE_BUILD_PCRECPP)    IF(PCRE_BUILD_PCRECPP)
735      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
# Line 434  IF(PCRE_BUILD_TESTS) Line 741  IF(PCRE_BUILD_TESTS)
741        )        )
742      ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)      ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
743    
   
744      ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)      ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
745      SET(targets ${targets} pcre_scanner_unittest)      SET(targets ${targets} pcre_scanner_unittest)
746      TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)      TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
# Line 444  IF(PCRE_BUILD_TESTS) Line 750  IF(PCRE_BUILD_TESTS)
750      TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)      TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)
751    ENDIF(PCRE_BUILD_PCRECPP)    ENDIF(PCRE_BUILD_PCRECPP)
752    
753    GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)    # exes in Debug location tested by the RunTest shell script
754      # via "make test"
755      IF(PCRE_BUILD_PCREGREP)
756        GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)
757      ENDIF(PCRE_BUILD_PCREGREP)
758    
759    GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)    GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)
760    
761    # Write out a CTest configuration file that sets some needed environment  # =================================================
762    # variables for the test scripts.    # Write out a CTest configuration file
763    #    #
764    FILE(WRITE ${PROJECT_BINARY_DIR}/CTestCustom.ctest    FILE(WRITE ${PROJECT_BINARY_DIR}/CTestCustom.ctest
765    "# This is a generated file.    "# This is a generated file.
766    SET(ENV{srcdir} ${PROJECT_SOURCE_DIR})  MESSAGE(\"When testing is complete, review test output in the
767    SET(ENV{pcregrep} ${PCREGREP_EXE})  \\\"${PROJECT_BINARY_DIR}/Testing/Temporary\\\" folder.\")
768    SET(ENV{pcretest} ${PCRETEST_EXE})  MESSAGE(\" \")
769    ")  ")
770    
771      FILE(WRITE ${PROJECT_BINARY_DIR}/pcre_test.sh
772      "#! /bin/sh
773    # This is a generated file.
774    srcdir=${PROJECT_SOURCE_DIR}
775    pcretest=${PCRETEST_EXE}
776    source ${PROJECT_SOURCE_DIR}/RunTest
777    if test \"$?\" != \"0\"; then exit 1; fi
778    # End
779    ")
780    
781    IF(UNIX)    IF(UNIX)
782            ADD_TEST(pcre_test      ${PROJECT_SOURCE_DIR}/RunTest)      ADD_TEST(pcre_test      sh ${PROJECT_BINARY_DIR}/pcre_test.sh)
           ADD_TEST(pcre_grep_test ${PROJECT_SOURCE_DIR}/RunGrepTest)  
783    ENDIF(UNIX)    ENDIF(UNIX)
784    
785      IF(PCRE_BUILD_PCREGREP)
786        FILE(WRITE ${PROJECT_BINARY_DIR}/pcre_grep_test.sh
787        "#! /bin/sh
788    # This is a generated file.
789    srcdir=${PROJECT_SOURCE_DIR}
790    pcregrep=${PCREGREP_EXE}
791    pcretest=${PCRETEST_EXE}
792    source ${PROJECT_SOURCE_DIR}/RunGrepTest
793    if test \"$?\" != \"0\"; then exit 1; fi
794    # End
795    ")
796    
797        IF(UNIX)
798          ADD_TEST(pcre_grep_test sh ${PROJECT_BINARY_DIR}/pcre_grep_test.sh)
799        ENDIF(UNIX)
800      ENDIF(PCRE_BUILD_PCREGREP)
801    
802    IF(WIN32)    IF(WIN32)
803            ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)      # Provide environment for executing the bat file version of RunTest
804        FILE(TO_NATIVE_PATH ${PROJECT_SOURCE_DIR} winsrc)
805        FILE(TO_NATIVE_PATH ${PROJECT_BINARY_DIR} winbin)
806        FILE(TO_NATIVE_PATH ${PCRETEST_EXE} winexe)
807    
808        FILE(WRITE ${PROJECT_BINARY_DIR}/pcre_test.bat
809        "\@REM This is a generated file.
810    \@echo off
811    setlocal
812    SET srcdir=\"${winsrc}\"
813    SET pcretest=\"${winexe}\"
814    if not [%CMAKE_CONFIG_TYPE%]==[] SET pcretest=\"${winbin}\\%CMAKE_CONFIG_TYPE%\\pcretest.exe\"
815    call %srcdir%\\RunTest.Bat
816    if errorlevel 1 exit /b 1
817    echo RunTest.bat tests successfully completed
818    ")
819    
820      ADD_TEST(NAME pcre_test_bat
821      COMMAND pcre_test.bat)
822      SET_TESTS_PROPERTIES(pcre_test_bat PROPERTIES
823      PASS_REGULAR_EXPRESSION "RunTest\\.bat tests successfully completed")
824    
825        IF("$ENV{OSTYPE}" STREQUAL "msys")
826          # Both the sh and bat file versions of RunTest are run if make test is used
827          # in msys
828          ADD_TEST(pcre_test_sh    sh.exe ${PROJECT_BINARY_DIR}/pcre_test.sh)
829          IF(PCRE_BUILD_PCREGREP)
830            ADD_TEST(pcre_grep_test  sh.exe ${PROJECT_BINARY_DIR}/pcre_grep_test.sh)
831          ENDIF(PCRE_BUILD_PCREGREP)
832        ENDIF("$ENV{OSTYPE}" STREQUAL "msys")
833    
834    ENDIF(WIN32)    ENDIF(WIN32)
835    
836    GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE    # Changed to accommodate testing whichever location was just built
837                        pcrecpp_unittest  
838                        DEBUG_LOCATION)    IF(PCRE_SUPPORT_JIT)
839        ADD_TEST(pcre_jit_test         pcre_jit_test)
840    GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE    ENDIF(PCRE_SUPPORT_JIT)
841                        pcre_scanner_unittest  
842                        DEBUG_LOCATION)    IF(PCRE_BUILD_PCRECPP)
843        ADD_TEST(pcrecpp_test          pcrecpp_unittest)
844    GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE      ADD_TEST(pcre_scanner_test     pcre_scanner_unittest)
845                        pcre_stringpiece_unittest      ADD_TEST(pcre_stringpiece_test pcre_stringpiece_unittest)
846                        DEBUG_LOCATION)    ENDIF(PCRE_BUILD_PCRECPP)
847    
   ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})  
   ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})  
   ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})  
848  ENDIF(PCRE_BUILD_TESTS)  ENDIF(PCRE_BUILD_TESTS)
849    
850  # Installation  # Installation
# Line 509  ELSE(PCRE_BUILD_PCRECPP) Line 874  ELSE(PCRE_BUILD_PCRECPP)
874          SET(man3 ${man3_new})          SET(man3 ${man3_new})
875  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
876    
   
877  INSTALL(FILES ${man1} DESTINATION man/man1)  INSTALL(FILES ${man1} DESTINATION man/man1)
878  INSTALL(FILES ${man3} DESTINATION man/man3)  INSTALL(FILES ${man3} DESTINATION man/man3)
879  INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)  INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)
# Line 539  IF(PCRE_SHOW_REPORT) Line 903  IF(PCRE_SHOW_REPORT)
903    MESSAGE(STATUS "  C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}")    MESSAGE(STATUS "  C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}")
904    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")
905    MESSAGE(STATUS "")    MESSAGE(STATUS "")
906      MESSAGE(STATUS "  Build 8 bit PCRE library ........ : ${PCRE_BUILD_PCRE8}")
907      MESSAGE(STATUS "  Build 16 bit PCRE library ....... : ${PCRE_BUILD_PCRE16}")
908      MESSAGE(STATUS "  Build 32 bit PCRE library ....... : ${PCRE_BUILD_PCRE32}")
909    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")
910    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")    MESSAGE(STATUS "  Enable JIT compiling support .... : ${PCRE_SUPPORT_JIT}")
911      MESSAGE(STATUS "  Enable UTF support .............. : ${PCRE_SUPPORT_UTF}")
912    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
913    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")
914    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")
915    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")
916      MESSAGE(STATUS "  EBCDIC coding with NL=0x25 ...... : ${PCRE_EBCDIC_NL25}")
917    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")
918    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")
919    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")
# Line 554  IF(PCRE_SHOW_REPORT) Line 923  IF(PCRE_SHOW_REPORT)
923    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")
924    MESSAGE(STATUS "  Build static libs ............... : ${BUILD_STATIC_LIBS}")    MESSAGE(STATUS "  Build static libs ............... : ${BUILD_STATIC_LIBS}")
925    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")
926    MESSAGE(STATUS "  Build tests (implies pcretest) .. : ${PCRE_BUILD_TESTS}")    MESSAGE(STATUS "  Enable JIT in pcregrep .......... : ${PCRE_SUPPORT_PCREGREP_JIT}")
927      MESSAGE(STATUS "  Buffer size for pcregrep ........ : ${PCREGREP_BUFSIZE}")
928      MESSAGE(STATUS "  Build tests (implies pcretest  .. : ${PCRE_BUILD_TESTS}")
929      MESSAGE(STATUS "               and pcregrep)")
930    IF(ZLIB_FOUND)    IF(ZLIB_FOUND)
931      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")
932    ELSE(ZLIB_FOUND)    ELSE(ZLIB_FOUND)
933      MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )      MESSAGE(STATUS "  Link pcregrep with libz ......... : Library not found" )
934    ENDIF(ZLIB_FOUND)    ENDIF(ZLIB_FOUND)
935    IF(BZIP2_FOUND)    IF(BZIP2_FOUND)
936      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")
937    ELSE(BZIP2_FOUND)    ELSE(BZIP2_FOUND)
938      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : Library not found" )
939    ENDIF(BZIP2_FOUND)    ENDIF(BZIP2_FOUND)
940    IF(NOT PCRE_SUPPORT_LIBREADLINE)    IF(EDITLINE_FOUND)
941      MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )      MESSAGE(STATUS "  Link pcretest with libeditline .. : ${PCRE_SUPPORT_LIBEDIT}")
942    ELSE(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(EDITLINE_FOUND)
943        MESSAGE(STATUS "  Link pcretest with libeditline .. : Library not found" )
944      ENDIF(EDITLINE_FOUND)
945      IF(READLINE_FOUND)
946      MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")      MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")
947    ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(READLINE_FOUND)
948        MESSAGE(STATUS "  Link pcretest with libreadline .. : Library not found" )
949      ENDIF(READLINE_FOUND)
950      MESSAGE(STATUS "  Support Valgrind .................: ${PCRE_SUPPORT_VALGRIND}")
951      MESSAGE(STATUS "  Support coverage .................: ${PCRE_SUPPORT_COVERAGE}")
952    
953    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
954      MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")      MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")
955      MESSAGE(STATUS "  Non-standard dll names (suffix) . : ${NON_STANDARD_LIB_SUFFIX}")      MESSAGE(STATUS "  Non-standard dll names (suffix) . : ${NON_STANDARD_LIB_SUFFIX}")

Legend:
Removed from v.475  
changed lines
  Added in v.1234

  ViewVC Help
Powered by ViewVC 1.1.5