/[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 685 by ph10, Tue Sep 6 15:02:07 2011 UTC revision 1368 by ph10, Tue Oct 8 10:01:58 2013 UTC
# Line 41  Line 41 
41  # 2011-08-22 PH added PCRE_SUPPORT_JIT  # 2011-08-22 PH added PCRE_SUPPORT_JIT
42  # 2011-09-06 PH modified WIN32 ADD_TEST line as suggested by Sergey Cherepanov  # 2011-09-06 PH modified WIN32 ADD_TEST line as suggested by Sergey Cherepanov
43  # 2011-09-06 PH added PCRE_SUPPORT_PCREGREP_JIT  # 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    # 2013-07-01 PH realized that the "support" for GCOV was a total nonsense and
65    #            so it has been removed.
66    # 2013-10-08 PH got rid of the "source" command, which is a bash-ism (use ".")
67    
68  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
69    
70  CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)  # Increased minimum to 2.8.0 to support newer add_test features
71    
72    CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
73    
74  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
75    
# Line 52  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_D Line 77  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_D
77  FIND_PACKAGE( BZip2 )  FIND_PACKAGE( BZip2 )
78  FIND_PACKAGE( ZLIB )  FIND_PACKAGE( ZLIB )
79  FIND_PACKAGE( Readline )  FIND_PACKAGE( Readline )
80    FIND_PACKAGE( Editline )
81    
82  # Configuration checks  # Configuration checks
83    
# Line 89  CHECK_TYPE_SIZE("unsigned long long" Line 115  CHECK_TYPE_SIZE("unsigned long long"
115  SET(BUILD_SHARED_LIBS OFF CACHE BOOL  SET(BUILD_SHARED_LIBS OFF CACHE BOOL
116      "Build shared libraries instead of static ones.")      "Build shared libraries instead of static ones.")
117    
118    OPTION(PCRE_BUILD_PCRE8 "Build 8 bit PCRE library" ON)
119    
120    OPTION(PCRE_BUILD_PCRE16 "Build 16 bit PCRE library" OFF)
121    
122    OPTION(PCRE_BUILD_PCRE32 "Build 32 bit PCRE library" OFF)
123    
124  OPTION(PCRE_BUILD_PCRECPP "Build the PCRE C++ library (pcrecpp)." ON)  OPTION(PCRE_BUILD_PCRECPP "Build the PCRE C++ library (pcrecpp)." ON)
125    
126  SET(PCRE_EBCDIC OFF CACHE BOOL  SET(PCRE_EBCDIC OFF CACHE BOOL
127      "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.)")
128    
129    SET(PCRE_EBCDIC_NL25 OFF CACHE BOOL
130        "Use 0x25 as EBCDIC NL character instead of 0x15; implies EBCDIC.")
131    
132  SET(PCRE_LINK_SIZE "2" CACHE STRING  SET(PCRE_LINK_SIZE "2" CACHE STRING
133      "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 117  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CAC Line 152  SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CAC
152    
153  SET(PCRE_SUPPORT_JIT OFF CACHE BOOL  SET(PCRE_SUPPORT_JIT OFF CACHE BOOL
154      "Enable support for Just-in-time compiling.")      "Enable support for Just-in-time compiling.")
155    
156  SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL  SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL
157      "Enable use of Just-in-time compiling in pcregrep.")      "Enable use of Just-in-time compiling in pcregrep.")
   
 SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL  
     "Enable support for Unicode properties. (If set, UTF-8 support will be enabled as well)")  
158    
159  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL  SET(PCRE_SUPPORT_UTF OFF CACHE BOOL
160      "Enable support for the Unicode UTF-8 encoding.")      "Enable support for Unicode Transformation Format (UTF-8/UTF-16/UTF-32) encoding.")
161    
162    SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
163        "Enable support for Unicode properties (if set, UTF support will be enabled as well).")
164    
165  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
166      "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")
167    
168    SET(PCRE_SUPPORT_VALGRIND OFF CACHE BOOL
169        "Enable Valgrind support.")
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 167  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 203  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)
# Line 217  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES) Line 287  ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
287    
288  IF(PCRE_SUPPORT_JIT)  IF(PCRE_SUPPORT_JIT)
289          SET(SUPPORT_JIT 1)          SET(SUPPORT_JIT 1)
290  ELSE  ENDIF(PCRE_SUPPORT_JIT)
         SET(PCRE_SUPPORT_PCREGREP_JIT 0)  
 ENDIF(PCRE_SUPPORT_JIT)  
291    
292  IF(PCRE_SUPPORT_PCREGREP_JIT)  IF(PCRE_SUPPORT_PCREGREP_JIT)
293          SET(SUPPORT_PCREGREP_JIT 1)          SET(SUPPORT_PCREGREP_JIT 1)
294  ENDIF(PCRE_SUPPORT_PCREGREP_JIT)  ENDIF(PCRE_SUPPORT_PCREGREP_JIT)
295    
296    IF(PCRE_SUPPORT_VALGRIND)
297            SET(SUPPORT_VALGRIND 1)
298    ENDIF(PCRE_SUPPORT_VALGRIND)
299    
300  # This next one used to contain  # This next one used to contain
301  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
# Line 236  IF(PCRE_SUPPORT_LIBREADLINE) Line 308  IF(PCRE_SUPPORT_LIBREADLINE)
308          SET(PCRETEST_LIBS ${READLINE_LIBRARY} ${NCURSES_LIBRARY})          SET(PCRETEST_LIBS ${READLINE_LIBRARY} ${NCURSES_LIBRARY})
309  ENDIF(PCRE_SUPPORT_LIBREADLINE)  ENDIF(PCRE_SUPPORT_LIBREADLINE)
310    
311    # libedit is a plug-compatible alternative to libreadline
312    
313    IF(PCRE_SUPPORT_LIBEDIT)
314            SET(SUPPORT_LIBEDIT 1)
315            SET(PCRETEST_LIBS ${EDITLINE_LIBRARY} ${NCURSES_LIBRARY})
316    ENDIF(PCRE_SUPPORT_LIBEDIT)
317    
318  IF(PCRE_SUPPORT_LIBZ)  IF(PCRE_SUPPORT_LIBZ)
319          SET(SUPPORT_LIBZ 1)          SET(SUPPORT_LIBZ 1)
320          SET(PCREGREP_LIBS ${PCREGREP_LIBS} ${ZLIB_LIBRARIES})          SET(PCREGREP_LIBS ${PCREGREP_LIBS} ${ZLIB_LIBRARIES})
# Line 270  ENDIF(NEWLINE STREQUAL "") Line 349  ENDIF(NEWLINE STREQUAL "")
349    
350  IF(PCRE_EBCDIC)  IF(PCRE_EBCDIC)
351          SET(EBCDIC 1)          SET(EBCDIC 1)
352    IF(PCRE_NEWLINE STREQUAL "LF")
353            SET(NEWLINE "21")
354    ENDIF(PCRE_NEWLINE STREQUAL "LF")
355    IF(PCRE_NEWLINE STREQUAL "CRLF")
356            SET(NEWLINE "3349")
357    ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
358  ENDIF(PCRE_EBCDIC)  ENDIF(PCRE_EBCDIC)
359    
360    IF(PCRE_EBCDIC_NL25)
361            SET(EBCDIC 1)
362            SET(EBCDIC_NL25 1)
363    IF(PCRE_NEWLINE STREQUAL "LF")
364            SET(NEWLINE "37")
365    ENDIF(PCRE_NEWLINE STREQUAL "LF")
366    IF(PCRE_NEWLINE STREQUAL "CRLF")
367            SET(NEWLINE "3365")
368    ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
369    ENDIF(PCRE_EBCDIC_NL25)
370    
371  IF(PCRE_NO_RECURSE)  IF(PCRE_NO_RECURSE)
372          SET(NO_RECURSE 1)          SET(NO_RECURSE 1)
373  ENDIF(PCRE_NO_RECURSE)  ENDIF(PCRE_NO_RECURSE)
# Line 281  CONFIGURE_FILE(config-cmake.h.in Line 377  CONFIGURE_FILE(config-cmake.h.in
377                 ${PROJECT_BINARY_DIR}/config.h                 ${PROJECT_BINARY_DIR}/config.h
378                 @ONLY)                 @ONLY)
379    
380  CONFIGURE_FILE(pcre.h.generic  # Parse version numbers and date out of configure.ac
381    
382    file(STRINGS ${PROJECT_SOURCE_DIR}/configure.ac
383      configure_lines
384      LIMIT_COUNT 50 # Read only the first 50 lines of the file
385    )
386    
387    set(SEARCHED_VARIABLES "pcre_major" "pcre_minor" "pcre_prerelease" "pcre_date")
388    foreach(configure_line ${configure_lines})
389        foreach(_substitution_variable ${SEARCHED_VARIABLES})
390            string(TOUPPER ${_substitution_variable} _substitution_variable_upper)
391            if (NOT ${_substitution_variable_upper})
392                string(REGEX MATCH "m4_define\\(${_substitution_variable}, \\[(.*)\\]" MACTHED_STRING ${configure_line})
393                if (CMAKE_MATCH_1)
394                    set(${_substitution_variable_upper} ${CMAKE_MATCH_1})
395                endif()
396            endif()
397        endforeach()
398    endforeach()
399    
400    CONFIGURE_FILE(pcre.h.in
401                 ${PROJECT_BINARY_DIR}/pcre.h                 ${PROJECT_BINARY_DIR}/pcre.h
402                 COPYONLY)                 @ONLY)
403    
404  # What about pcre-config and libpcre.pc?  # What about pcre-config and libpcre.pc?
405    
# Line 322  ENDIF(PCRE_REBUILD_CHARTABLES) Line 438  ENDIF(PCRE_REBUILD_CHARTABLES)
438    
439  SET(PCRE_HEADERS ${PROJECT_BINARY_DIR}/pcre.h)  SET(PCRE_HEADERS ${PROJECT_BINARY_DIR}/pcre.h)
440    
441    IF(PCRE_BUILD_PCRE8)
442  SET(PCRE_SOURCES  SET(PCRE_SOURCES
443    ${PROJECT_BINARY_DIR}/pcre_chartables.c    pcre_byte_order.c
444      pcre_chartables.c
445    pcre_compile.c    pcre_compile.c
446    pcre_config.c    pcre_config.c
447    pcre_dfa_exec.c    pcre_dfa_exec.c
# Line 331  SET(PCRE_SOURCES Line 449  SET(PCRE_SOURCES
449    pcre_fullinfo.c    pcre_fullinfo.c
450    pcre_get.c    pcre_get.c
451    pcre_globals.c    pcre_globals.c
   pcre_info.c  
452    pcre_jit_compile.c    pcre_jit_compile.c
   pcre_newline.c  
453    pcre_maketables.c    pcre_maketables.c
454      pcre_newline.c
455    pcre_ord2utf8.c    pcre_ord2utf8.c
456    pcre_refcount.c    pcre_refcount.c
457      pcre_string_utils.c
458    pcre_study.c    pcre_study.c
459    pcre_tables.c    pcre_tables.c
   pcre_try_flipped.c  
460    pcre_ucd.c    pcre_ucd.c
461    pcre_valid_utf8.c    pcre_valid_utf8.c
462    pcre_version.c    pcre_version.c
# Line 350  SET(PCREPOSIX_HEADERS pcreposix.h) Line 467  SET(PCREPOSIX_HEADERS pcreposix.h)
467    
468  SET(PCREPOSIX_SOURCES pcreposix.c)  SET(PCREPOSIX_SOURCES pcreposix.c)
469    
470    ENDIF(PCRE_BUILD_PCRE8)
471    
472    IF(PCRE_BUILD_PCRE16)
473    SET(PCRE16_SOURCES
474      pcre16_byte_order.c
475      pcre16_chartables.c
476      pcre16_compile.c
477      pcre16_config.c
478      pcre16_dfa_exec.c
479      pcre16_exec.c
480      pcre16_fullinfo.c
481      pcre16_get.c
482      pcre16_globals.c
483      pcre16_jit_compile.c
484      pcre16_maketables.c
485      pcre16_newline.c
486      pcre16_ord2utf16.c
487      pcre16_refcount.c
488      pcre16_string_utils.c
489      pcre16_study.c
490      pcre16_tables.c
491      pcre16_ucd.c
492      pcre16_utf16_utils.c
493      pcre16_valid_utf16.c
494      pcre16_version.c
495      pcre16_xclass.c
496    )
497    ENDIF(PCRE_BUILD_PCRE16)
498    
499    IF(PCRE_BUILD_PCRE32)
500    SET(PCRE32_SOURCES
501      pcre32_byte_order.c
502      pcre32_chartables.c
503      pcre32_compile.c
504      pcre32_config.c
505      pcre32_dfa_exec.c
506      pcre32_exec.c
507      pcre32_fullinfo.c
508      pcre32_get.c
509      pcre32_globals.c
510      pcre32_jit_compile.c
511      pcre32_maketables.c
512      pcre32_newline.c
513      pcre32_ord2utf32.c
514      pcre32_refcount.c
515      pcre32_string_utils.c
516      pcre32_study.c
517      pcre32_tables.c
518      pcre32_ucd.c
519      pcre32_utf32_utils.c
520      pcre32_valid_utf32.c
521      pcre32_version.c
522      pcre32_xclass.c
523    )
524    ENDIF(PCRE_BUILD_PCRE32)
525    
526    IF(MINGW AND NOT PCRE_STATIC)
527    IF (EXISTS ${PROJECT_SOURCE_DIR}/pcre.rc)
528    ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_SOURCE_DIR}/pcre.o
529    PRE-LINK
530    COMMAND windres ARGS pcre.rc pcre.o
531    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
532    COMMENT Using pcre coff info in mingw build)
533    SET(PCRE_SOURCES
534      ${PCRE_SOURCES} ${PROJECT_SOURCE_DIR}/pcre.o
535    )
536    ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/pcre.rc)
537    IF (EXISTS ${PROJECT_SOURCE_DIR}/pcreposix.rc)
538    ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_SOURCE_DIR}/pcreposix.o
539    PRE-LINK
540    COMMAND windres ARGS pcreposix.rc pcreposix.o
541    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
542    COMMENT Using pcreposix coff info in mingw build)
543    SET(PCREPOSIX_SOURCES
544      ${PCREPOSIX_SOURCES} ${PROJECT_SOURCE_DIR}/pcreposix.o
545    )
546    ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/pcreposix.rc)
547    ENDIF(MINGW AND NOT PCRE_STATIC)
548    
549  SET(PCRECPP_HEADERS  SET(PCRECPP_HEADERS
550    pcrecpp.h    pcrecpp.h
551    pcre_scanner.h    pcre_scanner.h
# Line 368  SET(PCRECPP_SOURCES Line 564  SET(PCRECPP_SOURCES
564  ADD_DEFINITIONS(-DHAVE_CONFIG_H)  ADD_DEFINITIONS(-DHAVE_CONFIG_H)
565    
566  IF(MSVC)  IF(MSVC)
567          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
568  ENDIF(MSVC)  ENDIF(MSVC)
569    
570  SET(CMAKE_INCLUDE_CURRENT_DIR 1)  SET(CMAKE_INCLUDE_CURRENT_DIR 1)
# Line 382  SET(targets) Line 578  SET(targets)
578    
579  # Libraries  # Libraries
580  # pcre  # pcre
581    IF(PCRE_BUILD_PCRE8)
582  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
583  SET(targets ${targets} pcre)  SET(targets ${targets} pcre)
584  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
585  SET(targets ${targets} pcreposix)  SET(targets ${targets} pcreposix)
586  TARGET_LINK_LIBRARIES(pcreposix pcre)  TARGET_LINK_LIBRARIES(pcreposix pcre)
587    
588  IF(MINGW AND NOT PCRE_STATIC)  IF(MINGW AND NOT PCRE_STATIC)
589    IF(NON_STANDARD_LIB_PREFIX)    IF(NON_STANDARD_LIB_PREFIX)
590      SET_TARGET_PROPERTIES(pcre pcreposix      SET_TARGET_PROPERTIES(pcre pcreposix
# Line 401  IF(MINGW AND NOT PCRE_STATIC) Line 599  IF(MINGW AND NOT PCRE_STATIC)
599    ENDIF(NON_STANDARD_LIB_SUFFIX)    ENDIF(NON_STANDARD_LIB_SUFFIX)
600  ENDIF(MINGW AND NOT PCRE_STATIC)  ENDIF(MINGW AND NOT PCRE_STATIC)
601    
602    ENDIF(PCRE_BUILD_PCRE8)
603    
604    IF(PCRE_BUILD_PCRE16)
605    ADD_LIBRARY(pcre16 ${PCRE_HEADERS} ${PCRE16_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
606    SET(targets ${targets} pcre16)
607    
608    IF(MINGW AND NOT PCRE_STATIC)
609      IF(NON_STANDARD_LIB_PREFIX)
610        SET_TARGET_PROPERTIES(pcre16
611                            PROPERTIES PREFIX ""
612        )
613      ENDIF(NON_STANDARD_LIB_PREFIX)
614    
615      IF(NON_STANDARD_LIB_SUFFIX)
616        SET_TARGET_PROPERTIES(pcre16
617                            PROPERTIES SUFFIX "-0.dll"
618        )
619      ENDIF(NON_STANDARD_LIB_SUFFIX)
620    ENDIF(MINGW AND NOT PCRE_STATIC)
621    
622    ENDIF(PCRE_BUILD_PCRE16)
623    
624    IF(PCRE_BUILD_PCRE32)
625    ADD_LIBRARY(pcre32 ${PCRE_HEADERS} ${PCRE32_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
626    SET(targets ${targets} pcre32)
627    
628    IF(MINGW AND NOT PCRE_STATIC)
629      IF(NON_STANDARD_LIB_PREFIX)
630        SET_TARGET_PROPERTIES(pcre32
631                            PROPERTIES PREFIX ""
632        )
633      ENDIF(NON_STANDARD_LIB_PREFIX)
634    
635      IF(NON_STANDARD_LIB_SUFFIX)
636        SET_TARGET_PROPERTIES(pcre32
637                            PROPERTIES SUFFIX "-0.dll"
638        )
639      ENDIF(NON_STANDARD_LIB_SUFFIX)
640    ENDIF(MINGW AND NOT PCRE_STATIC)
641    
642    ENDIF(PCRE_BUILD_PCRE32)
643    
644  # pcrecpp  # pcrecpp
645  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
646    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})  ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
647  SET(targets ${targets} pcrecpp)  SET(targets ${targets} pcrecpp)
648    TARGET_LINK_LIBRARIES(pcrecpp pcre)  TARGET_LINK_LIBRARIES(pcrecpp pcre)
649    
650    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
651      IF(NON_STANDARD_LIB_PREFIX)      IF(NON_STANDARD_LIB_PREFIX)
# Line 441  IF(PCRE_BUILD_PCREGREP) Line 680  IF(PCRE_BUILD_PCREGREP)
680    TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})    TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})
681  ENDIF(PCRE_BUILD_PCREGREP)  ENDIF(PCRE_BUILD_PCREGREP)
682    
   
683  # Testing  # Testing
684  IF(PCRE_BUILD_TESTS)  IF(PCRE_BUILD_TESTS)
685    ENABLE_TESTING()    ENABLE_TESTING()
686    
687    ADD_EXECUTABLE(pcretest pcretest.c)    SET(PCRETEST_SOURCES pcretest.c)
688      IF(PCRE_BUILD_PCRE8)
689        LIST(APPEND PCRETEST_SOURCES pcre_printint.c)
690      ENDIF(PCRE_BUILD_PCRE8)
691      IF(PCRE_BUILD_PCRE16)
692        LIST(APPEND PCRETEST_SOURCES pcre16_printint.c)
693      ENDIF(PCRE_BUILD_PCRE16)
694      IF(PCRE_BUILD_PCRE32)
695        LIST(APPEND PCRETEST_SOURCES pcre32_printint.c)
696      ENDIF(PCRE_BUILD_PCRE32)
697    
698      ADD_EXECUTABLE(pcretest ${PCRETEST_SOURCES})
699    SET(targets ${targets} pcretest)    SET(targets ${targets} pcretest)
700    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})    IF(PCRE_BUILD_PCRE8)
701        LIST(APPEND PCRETEST_LIBS pcreposix pcre)
702      ENDIF(PCRE_BUILD_PCRE8)
703      IF(PCRE_BUILD_PCRE16)
704        LIST(APPEND PCRETEST_LIBS pcre16)
705      ENDIF(PCRE_BUILD_PCRE16)
706      IF(PCRE_BUILD_PCRE32)
707        LIST(APPEND PCRETEST_LIBS pcre32)
708      ENDIF(PCRE_BUILD_PCRE32)
709      TARGET_LINK_LIBRARIES(pcretest ${PCRETEST_LIBS})
710    
711    IF(PCRE_SUPPORT_JIT)    IF(PCRE_SUPPORT_JIT)
712      ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)      ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)
713      SET(targets ${targets} pcre_jit_test)      SET(targets ${targets} pcre_jit_test)
714      TARGET_LINK_LIBRARIES(pcre_jit_test pcre)      SET(PCRE_JIT_TEST_LIBS )
715    ENDIF(PCRE_SUPPORT_JIT)      IF(PCRE_BUILD_PCRE8)
716          LIST(APPEND PCRE_JIT_TEST_LIBS pcre)
717        ENDIF(PCRE_BUILD_PCRE8)
718        IF(PCRE_BUILD_PCRE16)
719          LIST(APPEND PCRE_JIT_TEST_LIBS pcre16)
720        ENDIF(PCRE_BUILD_PCRE16)
721        IF(PCRE_BUILD_PCRE32)
722          LIST(APPEND PCRE_JIT_TEST_LIBS pcre32)
723        ENDIF(PCRE_BUILD_PCRE32)
724        TARGET_LINK_LIBRARIES(pcre_jit_test ${PCRE_JIT_TEST_LIBS})
725      ENDIF(PCRE_SUPPORT_JIT)
726    
727    IF(PCRE_BUILD_PCRECPP)    IF(PCRE_BUILD_PCRECPP)
728      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)      ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
# Line 475  IF(PCRE_BUILD_TESTS) Line 743  IF(PCRE_BUILD_TESTS)
743      TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)      TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)
744    ENDIF(PCRE_BUILD_PCRECPP)    ENDIF(PCRE_BUILD_PCRECPP)
745    
746    GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)    # exes in Debug location tested by the RunTest shell script
747      # via "make test"
748      IF(PCRE_BUILD_PCREGREP)
749        GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)
750      ENDIF(PCRE_BUILD_PCREGREP)
751    
752    GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)    GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)
753    
754    # Write out a CTest configuration file that sets some needed environment  # =================================================
755    # variables for the test scripts.    # Write out a CTest configuration file
756    #    #
757    FILE(WRITE ${PROJECT_BINARY_DIR}/CTestCustom.ctest    FILE(WRITE ${PROJECT_BINARY_DIR}/CTestCustom.ctest
758    "# This is a generated file.    "# This is a generated file.
759    SET(ENV{srcdir} ${PROJECT_SOURCE_DIR})  MESSAGE(\"When testing is complete, review test output in the
760    SET(ENV{pcregrep} ${PCREGREP_EXE})  \\\"${PROJECT_BINARY_DIR}/Testing/Temporary\\\" folder.\")
761    SET(ENV{pcretest} ${PCRETEST_EXE})  MESSAGE(\" \")
762    ")  ")
763    
764      FILE(WRITE ${PROJECT_BINARY_DIR}/pcre_test.sh
765      "#! /bin/sh
766    # This is a generated file.
767    srcdir=${PROJECT_SOURCE_DIR}
768    pcretest=${PCRETEST_EXE}
769    . ${PROJECT_SOURCE_DIR}/RunTest
770    if test \"$?\" != \"0\"; then exit 1; fi
771    # End
772    ")
773    
774    IF(UNIX)    IF(UNIX)
775            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)  
776    ENDIF(UNIX)    ENDIF(UNIX)
777    
778      IF(PCRE_BUILD_PCREGREP)
779        FILE(WRITE ${PROJECT_BINARY_DIR}/pcre_grep_test.sh
780        "#! /bin/sh
781    # This is a generated file.
782    srcdir=${PROJECT_SOURCE_DIR}
783    pcregrep=${PCREGREP_EXE}
784    pcretest=${PCRETEST_EXE}
785    . ${PROJECT_SOURCE_DIR}/RunGrepTest
786    if test \"$?\" != \"0\"; then exit 1; fi
787    # End
788    ")
789    
790        IF(UNIX)
791          ADD_TEST(pcre_grep_test sh ${PROJECT_BINARY_DIR}/pcre_grep_test.sh)
792        ENDIF(UNIX)
793      ENDIF(PCRE_BUILD_PCREGREP)
794    
795    IF(WIN32)    IF(WIN32)
796            # ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)      # Provide environment for executing the bat file version of RunTest
797            ADD_TEST(pcre_test ${PROJECT_SOURCE_DIR}/RunTest.bat)      FILE(TO_NATIVE_PATH ${PROJECT_SOURCE_DIR} winsrc)
798        FILE(TO_NATIVE_PATH ${PROJECT_BINARY_DIR} winbin)
799        FILE(TO_NATIVE_PATH ${PCRETEST_EXE} winexe)
800    
801        FILE(WRITE ${PROJECT_BINARY_DIR}/pcre_test.bat
802        "\@REM This is a generated file.
803    \@echo off
804    setlocal
805    SET srcdir=\"${winsrc}\"
806    SET pcretest=\"${winexe}\"
807    if not [%CMAKE_CONFIG_TYPE%]==[] SET pcretest=\"${winbin}\\%CMAKE_CONFIG_TYPE%\\pcretest.exe\"
808    call %srcdir%\\RunTest.Bat
809    if errorlevel 1 exit /b 1
810    echo RunTest.bat tests successfully completed
811    ")
812    
813      ADD_TEST(NAME pcre_test_bat
814      COMMAND pcre_test.bat)
815      SET_TESTS_PROPERTIES(pcre_test_bat PROPERTIES
816      PASS_REGULAR_EXPRESSION "RunTest\\.bat tests successfully completed")
817    
818        IF("$ENV{OSTYPE}" STREQUAL "msys")
819          # Both the sh and bat file versions of RunTest are run if make test is used
820          # in msys
821          ADD_TEST(pcre_test_sh    sh.exe ${PROJECT_BINARY_DIR}/pcre_test.sh)
822          IF(PCRE_BUILD_PCREGREP)
823            ADD_TEST(pcre_grep_test  sh.exe ${PROJECT_BINARY_DIR}/pcre_grep_test.sh)
824          ENDIF(PCRE_BUILD_PCREGREP)
825        ENDIF("$ENV{OSTYPE}" STREQUAL "msys")
826    
827    ENDIF(WIN32)    ENDIF(WIN32)
828    
829    IF(PCRE_SUPPORT_JIT)    # Changed to accommodate testing whichever location was just built
   GET_TARGET_PROPERTY(PCRE_JIT_TEST_EXE  
                       pcre_jit_test  
                       DEBUG_LOCATION)  
   ENDIF(PCRE_SUPPORT_JIT)  
   
   GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE  
                       pcrecpp_unittest  
                       DEBUG_LOCATION)  
   
   GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE  
                       pcre_scanner_unittest  
                       DEBUG_LOCATION)  
   
   GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE  
                       pcre_stringpiece_unittest  
                       DEBUG_LOCATION)  
830    
831    IF(PCRE_SUPPORT_JIT)    IF(PCRE_SUPPORT_JIT)
832    ADD_TEST(pcre_jit_test         ${PCRE_JIT_TEST_EXE})      ADD_TEST(pcre_jit_test         pcre_jit_test)
833    ENDIF(PCRE_SUPPORT_JIT)    ENDIF(PCRE_SUPPORT_JIT)
834    ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})  
835    ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})    IF(PCRE_BUILD_PCRECPP)
836    ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})      ADD_TEST(pcrecpp_test          pcrecpp_unittest)
837        ADD_TEST(pcre_scanner_test     pcre_scanner_unittest)
838        ADD_TEST(pcre_stringpiece_test pcre_stringpiece_unittest)
839      ENDIF(PCRE_BUILD_PCRECPP)
840    
841  ENDIF(PCRE_BUILD_TESTS)  ENDIF(PCRE_BUILD_TESTS)
842    
843  # Installation  # Installation
# Line 550  ELSE(PCRE_BUILD_PCRECPP) Line 867  ELSE(PCRE_BUILD_PCRECPP)
867          SET(man3 ${man3_new})          SET(man3 ${man3_new})
868  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
869    
   
870  INSTALL(FILES ${man1} DESTINATION man/man1)  INSTALL(FILES ${man1} DESTINATION man/man1)
871  INSTALL(FILES ${man3} DESTINATION man/man3)  INSTALL(FILES ${man3} DESTINATION man/man3)
872  INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)  INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)
# Line 580  IF(PCRE_SHOW_REPORT) Line 896  IF(PCRE_SHOW_REPORT)
896    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}}")
897    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}}")
898    MESSAGE(STATUS "")    MESSAGE(STATUS "")
899      MESSAGE(STATUS "  Build 8 bit PCRE library ........ : ${PCRE_BUILD_PCRE8}")
900      MESSAGE(STATUS "  Build 16 bit PCRE library ....... : ${PCRE_BUILD_PCRE16}")
901      MESSAGE(STATUS "  Build 32 bit PCRE library ....... : ${PCRE_BUILD_PCRE32}")
902    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")
903    MESSAGE(STATUS "  Enable JIT compiling support .... : ${PCRE_SUPPORT_JIT}")    MESSAGE(STATUS "  Enable JIT compiling support .... : ${PCRE_SUPPORT_JIT}")
904    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")    MESSAGE(STATUS "  Enable UTF support .............. : ${PCRE_SUPPORT_UTF}")
905    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
906    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")
907    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")
908    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")
909      MESSAGE(STATUS "  EBCDIC coding with NL=0x25 ...... : ${PCRE_EBCDIC_NL25}")
910    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")
911    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")
912    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")
# Line 598  IF(PCRE_SHOW_REPORT) Line 918  IF(PCRE_SHOW_REPORT)
918    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")
919    MESSAGE(STATUS "  Enable JIT in pcregrep .......... : ${PCRE_SUPPORT_PCREGREP_JIT}")    MESSAGE(STATUS "  Enable JIT in pcregrep .......... : ${PCRE_SUPPORT_PCREGREP_JIT}")
920    MESSAGE(STATUS "  Buffer size for pcregrep ........ : ${PCREGREP_BUFSIZE}")    MESSAGE(STATUS "  Buffer size for pcregrep ........ : ${PCREGREP_BUFSIZE}")
921    MESSAGE(STATUS "  Build tests (implies pcretest) .. : ${PCRE_BUILD_TESTS}")    MESSAGE(STATUS "  Build tests (implies pcretest  .. : ${PCRE_BUILD_TESTS}")
922      MESSAGE(STATUS "               and pcregrep)")
923    IF(ZLIB_FOUND)    IF(ZLIB_FOUND)
924      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")
925    ELSE(ZLIB_FOUND)    ELSE(ZLIB_FOUND)
926      MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )      MESSAGE(STATUS "  Link pcregrep with libz ......... : Library not found" )
927    ENDIF(ZLIB_FOUND)    ENDIF(ZLIB_FOUND)
928    IF(BZIP2_FOUND)    IF(BZIP2_FOUND)
929      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")
930    ELSE(BZIP2_FOUND)    ELSE(BZIP2_FOUND)
931      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : Library not found" )
932    ENDIF(BZIP2_FOUND)    ENDIF(BZIP2_FOUND)
933    IF(NOT PCRE_SUPPORT_LIBREADLINE)    IF(EDITLINE_FOUND)
934      MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )      MESSAGE(STATUS "  Link pcretest with libeditline .. : ${PCRE_SUPPORT_LIBEDIT}")
935    ELSE(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(EDITLINE_FOUND)
936        MESSAGE(STATUS "  Link pcretest with libeditline .. : Library not found" )
937      ENDIF(EDITLINE_FOUND)
938      IF(READLINE_FOUND)
939      MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")      MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")
940    ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(READLINE_FOUND)
941        MESSAGE(STATUS "  Link pcretest with libreadline .. : Library not found" )
942      ENDIF(READLINE_FOUND)
943      MESSAGE(STATUS "  Support Valgrind .................: ${PCRE_SUPPORT_VALGRIND}")
944      MESSAGE(STATUS "  Support coverage .................: ${PCRE_SUPPORT_COVERAGE}")
945    
946    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
947      MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")      MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")
948      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.685  
changed lines
  Added in v.1368

  ViewVC Help
Powered by ViewVC 1.1.5