/[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 351 by ph10, Fri Jul 4 18:27:16 2008 UTC revision 475 by ph10, Sat Jan 2 18:21:30 2010 UTC
# Line 15  Line 15 
15  #                PCRE_SUPPORT_LIBBZ2.  #                PCRE_SUPPORT_LIBBZ2.
16  # 2008-01-20 Brought up to date to include several new features by Christian  # 2008-01-20 Brought up to date to include several new features by Christian
17  #            Ehrlicher.  #            Ehrlicher.
18  # 2008-01-22 Sheri added options for backward compatibility of library names when  # 2008-01-22 Sheri added options for backward compatibility of library names
19  #            building with minGW:  #            when building with minGW:
20  #            if "ON", NON_STANDARD_LIB_PREFIX causes shared libraries to  #            if "ON", NON_STANDARD_LIB_PREFIX causes shared libraries to
21  #            be built without "lib" as prefix. (The libraries will be named pcre.dll,  #            be built without "lib" as prefix. (The libraries will be named
22  #            pcreposix.dll and pcrecpp.dll).  #            pcre.dll, pcreposix.dll and pcrecpp.dll).
23  #            if "ON", NON_STANDARD_LIB_SUFFIX causes shared libraries to  #            if "ON", NON_STANDARD_LIB_SUFFIX causes shared libraries to
24  #            be built with suffix of "-0.dll". (The libraries will be named  #            be built with suffix of "-0.dll". (The libraries will be named
25  #            libpcre-0.dll, libpcreposix-0.dll and libpcrecpp-0.dll - same names  #            libpcre-0.dll, libpcreposix-0.dll and libpcrecpp-0.dll - same names
# Line 27  Line 27 
27  # 2008-01-23 PH removed the automatic build of pcredemo.  # 2008-01-23 PH removed the automatic build of pcredemo.
28  # 2008-04-22 PH modified READLINE support so it finds NCURSES when needed.  # 2008-04-22 PH modified READLINE support so it finds NCURSES when needed.
29  # 2008-07-03 PH updated for revised UCP property support (change of files)  # 2008-07-03 PH updated for revised UCP property support (change of files)
30    # 2009-03-23 PH applied Steven Van Ingelgem's patch to change the name
31    #            CMAKE_BINARY_DIR to PROJECT_BINARY_DIR so that it works when PCRE
32    #            is included within another project.
33    # 2009-03-23 PH applied a modified version of Steven Van Ingelgem's patches to
34    #            add options to stop the building of pcregrep and the tests, and
35    #            to disable the final configuration report.
36    # 2009-04-11 PH applied Christian Ehrlicher's patch to show compiler flags that
37    #            are set by specifying a release type.
38    # 2010-01-02 PH added test for stdint.h
39    
40  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
41    
42  CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)  CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)
43    
44  SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # for FindReadline.cmake  SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
45    
46  # external packages  # external packages
47  FIND_PACKAGE( BZip2 )  FIND_PACKAGE( BZip2 )
# Line 47  INCLUDE(CheckFunctionExists) Line 56  INCLUDE(CheckFunctionExists)
56  INCLUDE(CheckTypeSize)  INCLUDE(CheckTypeSize)
57    
58  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)  CHECK_INCLUDE_FILE(dirent.h     HAVE_DIRENT_H)
59    CHECK_INCLUDE_FILE(stdint.h     HAVE_STDINT_H)
60  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)  CHECK_INCLUDE_FILE(sys/stat.h   HAVE_SYS_STAT_H)
61  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)  CHECK_INCLUDE_FILE(sys/types.h  HAVE_SYS_TYPES_H)
62  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)  CHECK_INCLUDE_FILE(unistd.h     HAVE_UNISTD_H)
# Line 105  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL Line 115  SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL
115  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
116      "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")
117    
118    OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)
119    OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)
120    OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)
121    
122    IF (PCRE_BUILD_TESTS)
123      IF (NOT PCRE_BUILD_PCREGREP)
124        MESSAGE(STATUS "** Building tests requires pcregrep: PCRE_BUILD_PCREGREP forced ON")
125        SET(PCRE_BUILD_PCREGREP ON)
126      ENDIF(NOT PCRE_BUILD_PCREGREP)
127    ENDIF(PCRE_BUILD_TESTS)
128    
129  IF (MINGW)  IF (MINGW)
130    OPTION(NON_STANDARD_LIB_PREFIX    OPTION(NON_STANDARD_LIB_PREFIX
# Line 232  IF(PCRE_NO_RECURSE) Line 252  IF(PCRE_NO_RECURSE)
252  ENDIF(PCRE_NO_RECURSE)  ENDIF(PCRE_NO_RECURSE)
253    
254  # Output files  # Output files
   
255  CONFIGURE_FILE(config-cmake.h.in  CONFIGURE_FILE(config-cmake.h.in
256                 ${CMAKE_BINARY_DIR}/config.h                 ${PROJECT_BINARY_DIR}/config.h
257                 @ONLY)                 @ONLY)
258    
259  CONFIGURE_FILE(pcre.h.generic  CONFIGURE_FILE(pcre.h.generic
260                 ${CMAKE_BINARY_DIR}/pcre.h                 ${PROJECT_BINARY_DIR}/pcre.h
261                 COPYONLY)                 COPYONLY)
262    
263  # What about pcre-config and libpcre.pc?  # What about pcre-config and libpcre.pc?
264    
265  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
266          CONFIGURE_FILE(pcre_stringpiece.h.in          CONFIGURE_FILE(pcre_stringpiece.h.in
267                         ${CMAKE_BINARY_DIR}/pcre_stringpiece.h                         ${PROJECT_BINARY_DIR}/pcre_stringpiece.h
268                         @ONLY)                         @ONLY)
269    
270          CONFIGURE_FILE(pcrecpparg.h.in          CONFIGURE_FILE(pcrecpparg.h.in
271                         ${CMAKE_BINARY_DIR}/pcrecpparg.h                         ${PROJECT_BINARY_DIR}/pcrecpparg.h
272                         @ONLY)                         @ONLY)
273  ENDIF(PCRE_BUILD_PCRECPP)  ENDIF(PCRE_BUILD_PCRECPP)
274    
# Line 265  IF(PCRE_REBUILD_CHARTABLES) Line 284  IF(PCRE_REBUILD_CHARTABLES)
284      COMMENT "Generating character tables (pcre_chartables.c) for current locale"      COMMENT "Generating character tables (pcre_chartables.c) for current locale"
285      DEPENDS dftables      DEPENDS dftables
286      COMMAND ${DFTABLES_EXE}      COMMAND ${DFTABLES_EXE}
287      ARGS        ${CMAKE_BINARY_DIR}/pcre_chartables.c      ARGS        ${PROJECT_BINARY_DIR}/pcre_chartables.c
288      OUTPUT      ${CMAKE_BINARY_DIR}/pcre_chartables.c      OUTPUT      ${PROJECT_BINARY_DIR}/pcre_chartables.c
289    )    )
290  ELSE(PCRE_REBUILD_CHARTABLES)  ELSE(PCRE_REBUILD_CHARTABLES)
291    CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pcre_chartables.c.dist    CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/pcre_chartables.c.dist
292                      ${CMAKE_BINARY_DIR}/pcre_chartables.c                      ${PROJECT_BINARY_DIR}/pcre_chartables.c
293                      COPYONLY)                      COPYONLY)
294  ENDIF(PCRE_REBUILD_CHARTABLES)  ENDIF(PCRE_REBUILD_CHARTABLES)
295    
296  # Source code  # Source code
297    
298  SET(PCRE_HEADERS ${CMAKE_BINARY_DIR}/pcre.h)  SET(PCRE_HEADERS ${PROJECT_BINARY_DIR}/pcre.h)
299    
300  SET(PCRE_SOURCES  SET(PCRE_SOURCES
301    ${CMAKE_BINARY_DIR}/pcre_chartables.c    ${PROJECT_BINARY_DIR}/pcre_chartables.c
302    pcre_compile.c    pcre_compile.c
303    pcre_config.c    pcre_config.c
304    pcre_dfa_exec.c    pcre_dfa_exec.c
# Line 308  SET(PCREPOSIX_SOURCES pcreposix.c) Line 327  SET(PCREPOSIX_SOURCES pcreposix.c)
327  SET(PCRECPP_HEADERS  SET(PCRECPP_HEADERS
328    pcrecpp.h    pcrecpp.h
329    pcre_scanner.h    pcre_scanner.h
330    ${CMAKE_BINARY_DIR}/pcrecpparg.h    ${PROJECT_BINARY_DIR}/pcrecpparg.h
331    ${CMAKE_BINARY_DIR}/pcre_stringpiece.h    ${PROJECT_BINARY_DIR}/pcre_stringpiece.h
332  )  )
333    
334  SET(PCRECPP_SOURCES  SET(PCRECPP_SOURCES
# Line 333  IF(WIN32) Line 352  IF(WIN32)
352    SET(CMAKE_DEBUG_POSTFIX "d")    SET(CMAKE_DEBUG_POSTFIX "d")
353  ENDIF(WIN32)  ENDIF(WIN32)
354    
355    SET(targets)
356    
357  # Libraries  # Libraries
358  # pcre  # pcre
359  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${CMAKE_BINARY_DIR}/config.h)  ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${PROJECT_BINARY_DIR}/config.h)
360    SET(targets ${targets} pcre)
361  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})  ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
362    SET(targets ${targets} pcreposix)
363  TARGET_LINK_LIBRARIES(pcreposix pcre)  TARGET_LINK_LIBRARIES(pcreposix pcre)
364  IF(MINGW AND NOT PCRE_STATIC)  IF(MINGW AND NOT PCRE_STATIC)
365    IF(NON_STANDARD_LIB_PREFIX)    IF(NON_STANDARD_LIB_PREFIX)
# Line 356  ENDIF(MINGW AND NOT PCRE_STATIC) Line 379  ENDIF(MINGW AND NOT PCRE_STATIC)
379  # pcrecpp  # pcrecpp
380  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
381    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})    ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
382    SET(targets ${targets} pcrecpp)
383    TARGET_LINK_LIBRARIES(pcrecpp pcre)    TARGET_LINK_LIBRARIES(pcrecpp pcre)
384    
385    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
# Line 376  ENDIF(PCRE_BUILD_PCRECPP) Line 400  ENDIF(PCRE_BUILD_PCRECPP)
400    
401  # Executables  # Executables
402    
 ADD_EXECUTABLE(pcretest pcretest.c)  
 TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})  
   
 ADD_EXECUTABLE(pcregrep pcregrep.c)  
 TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})  
   
403  # Removed by PH (2008-01-23) because pcredemo shouldn't really be built  # Removed by PH (2008-01-23) because pcredemo shouldn't really be built
404  # automatically, and it gave trouble in some environments anyway.  # automatically, and it gave trouble in some environments anyway.
405  # ADD_EXECUTABLE(pcredemo pcredemo.c)  # ADD_EXECUTABLE(pcredemo pcredemo.c)
# Line 391  TARGET_LINK_LIBRARIES(pcregrep pcreposix Line 409  TARGET_LINK_LIBRARIES(pcregrep pcreposix
409  #         SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")  #         SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")
410  # ENDIF(NOT BUILD_SHARED_LIBS)  # ENDIF(NOT BUILD_SHARED_LIBS)
411    
412  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCREGREP)
413          ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)    ADD_EXECUTABLE(pcregrep pcregrep.c)
414          TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)    SET(targets ${targets} pcregrep)
415  IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)    TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})
416  SET_TARGET_PROPERTIES(pcrecpp  ENDIF(PCRE_BUILD_PCREGREP)
                         PROPERTIES PREFIX ""  
 )  
 ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)  
417    
418    
         ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)  
         TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)  
   
         ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)  
         TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)  
 ENDIF(PCRE_BUILD_PCRECPP)  
   
419  # Testing  # Testing
420    IF(PCRE_BUILD_TESTS)
421      ENABLE_TESTING()
422    
423  ENABLE_TESTING()    ADD_EXECUTABLE(pcretest pcretest.c)
424      SET(targets ${targets} pcretest)
425  GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)    TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})
426  GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)  
427      IF(PCRE_BUILD_PCRECPP)
428        ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
429        SET(targets ${targets} pcrecpp_unittest)
430        TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)
431        IF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
432          SET_TARGET_PROPERTIES(pcrecpp
433                            PROPERTIES PREFIX ""
434          )
435        ENDIF(MINGW AND NON_STANDARD_LIB_NAMES AND NOT PCRE_STATIC)
436    
 # Write out a CTest configuration file that sets some needed environment  
 # variables for the test scripts.  
 #  
 FILE(WRITE ${CMAKE_BINARY_DIR}/CTestCustom.ctest  
 "# This is a generated file.  
 SET(ENV{srcdir} ${CMAKE_SOURCE_DIR})  
 SET(ENV{pcregrep} ${PCREGREP_EXE})  
 SET(ENV{pcretest} ${PCRETEST_EXE})  
 ")  
   
 IF(UNIX)  
         ADD_TEST(pcre_test      ${CMAKE_SOURCE_DIR}/RunTest)  
         ADD_TEST(pcre_grep_test ${CMAKE_SOURCE_DIR}/RunGrepTest)  
 ENDIF(UNIX)  
 IF(WIN32)  
         ADD_TEST(pcre_test cmd /C ${CMAKE_SOURCE_DIR}/RunTest.bat)  
 ENDIF(WIN32)  
437    
438  GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE      ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
439                      pcrecpp_unittest      SET(targets ${targets} pcre_scanner_unittest)
440                      DEBUG_LOCATION)      TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
441    
442  GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE      ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)
443                      pcre_scanner_unittest      SET(targets ${targets} pcre_stringpiece_unittest)
444                      DEBUG_LOCATION)      TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)
445      ENDIF(PCRE_BUILD_PCRECPP)
446  GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE  
447                      pcre_stringpiece_unittest    GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)
448                      DEBUG_LOCATION)    GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)
449    
450  ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})    # Write out a CTest configuration file that sets some needed environment
451  ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})    # variables for the test scripts.
452  ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})    #
453      FILE(WRITE ${PROJECT_BINARY_DIR}/CTestCustom.ctest
454      "# This is a generated file.
455      SET(ENV{srcdir} ${PROJECT_SOURCE_DIR})
456      SET(ENV{pcregrep} ${PCREGREP_EXE})
457      SET(ENV{pcretest} ${PCRETEST_EXE})
458      ")
459    
460      IF(UNIX)
461              ADD_TEST(pcre_test      ${PROJECT_SOURCE_DIR}/RunTest)
462              ADD_TEST(pcre_grep_test ${PROJECT_SOURCE_DIR}/RunGrepTest)
463      ENDIF(UNIX)
464      IF(WIN32)
465              ADD_TEST(pcre_test cmd /C ${PROJECT_SOURCE_DIR}/RunTest.bat)
466      ENDIF(WIN32)
467    
468      GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE
469                          pcrecpp_unittest
470                          DEBUG_LOCATION)
471    
472      GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE
473                          pcre_scanner_unittest
474                          DEBUG_LOCATION)
475    
476      GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE
477                          pcre_stringpiece_unittest
478                          DEBUG_LOCATION)
479    
480      ADD_TEST(pcrecpp_test          ${PCRECPP_UNITTEST_EXE})
481      ADD_TEST(pcre_scanner_test     ${PCRE_SCANNER_UNITTEST_EXE})
482      ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})
483    ENDIF(PCRE_BUILD_TESTS)
484    
485  # Installation  # Installation
   
486  SET(CMAKE_INSTALL_ALWAYS 1)  SET(CMAKE_INSTALL_ALWAYS 1)
487    
488  INSTALL(TARGETS pcre pcreposix pcregrep pcretest  INSTALL(TARGETS ${targets}
489          RUNTIME DESTINATION bin          RUNTIME DESTINATION bin
490          LIBRARY DESTINATION lib          LIBRARY DESTINATION lib
491          ARCHIVE DESTINATION lib)          ARCHIVE DESTINATION lib)
492    
493  INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)  INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)
494    
495  FILE(GLOB html ${CMAKE_SOURCE_DIR}/doc/html/*.html)  FILE(GLOB html ${PROJECT_SOURCE_DIR}/doc/html/*.html)
496  FILE(GLOB man1 ${CMAKE_SOURCE_DIR}/doc/*.1)  FILE(GLOB man1 ${PROJECT_SOURCE_DIR}/doc/*.1)
497  FILE(GLOB man3 ${CMAKE_SOURCE_DIR}/doc/*.3)  FILE(GLOB man3 ${PROJECT_SOURCE_DIR}/doc/*.3)
498    
499  IF(PCRE_BUILD_PCRECPP)  IF(PCRE_BUILD_PCRECPP)
         INSTALL(TARGETS pcrecpp  
                 RUNTIME DESTINATION bin  
                 LIBRARY DESTINATION lib  
                 ARCHIVE DESTINATION lib)  
500          INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)          INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)
501  ELSE(PCRE_BUILD_PCRECPP)  ELSE(PCRE_BUILD_PCRECPP)
502          # Remove pcrecpp.3          # Remove pcrecpp.3
# Line 493  ELSE(BUILD_SHARED_LIBS) Line 521  ELSE(BUILD_SHARED_LIBS)
521    SET(BUILD_STATIC_LIBS ON)    SET(BUILD_STATIC_LIBS ON)
522  ENDIF(BUILD_SHARED_LIBS)  ENDIF(BUILD_SHARED_LIBS)
523    
524  MESSAGE(STATUS "")  IF(PCRE_SHOW_REPORT)
525  MESSAGE(STATUS "")    STRING(TOUPPER "${CMAKE_BUILD_TYPE}" buildtype)
526  MESSAGE(STATUS "PCRE configuration summary:")    IF (CMAKE_C_FLAGS)
527  MESSAGE(STATUS "")      SET(cfsp " ")
528  MESSAGE(STATUS "  Install prefix .................. : " ${CMAKE_INSTALL_PREFIX})    ENDIF(CMAKE_C_FLAGS)
529  MESSAGE(STATUS "  C compiler ...................... : " ${CMAKE_C_COMPILER})    IF (CMAKE_CXX_FLAGS)
530  MESSAGE(STATUS "  C++ compiler .................... : " ${CMAKE_CXX_COMPILER})      SET(cxxfsp " ")
531  MESSAGE(STATUS "  C compiler flags ................ : " ${CMAKE_C_FLAGS})   #FIXME    ENDIF(CMAKE_CXX_FLAGS)
532  MESSAGE(STATUS "  C++ compiler flags .............. : " ${CMAKE_CXX_FLAGS}) #FIXME    MESSAGE(STATUS "")
533  MESSAGE(STATUS "")    MESSAGE(STATUS "")
534  MESSAGE(STATUS "  Build C++ library ............... : " ${PCRE_BUILD_PCRECPP})    MESSAGE(STATUS "PCRE configuration summary:")
535  MESSAGE(STATUS "  Enable UTF-8 support ............ : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})    MESSAGE(STATUS "")
536  MESSAGE(STATUS "  Unicode properties .............. : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})    MESSAGE(STATUS "  Install prefix .................. : ${CMAKE_INSTALL_PREFIX}")
537  MESSAGE(STATUS "  Newline char/sequence ........... : " ${PCRE_NEWLINE})    MESSAGE(STATUS "  C compiler ...................... : ${CMAKE_C_COMPILER}")
538  MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : " ${PCRE_SUPPORT_BSR_ANYCRLF})    MESSAGE(STATUS "  C++ compiler .................... : ${CMAKE_CXX_COMPILER}")
539  MESSAGE(STATUS "  EBCDIC coding ................... : " ${PCRE_EBCDIC})    MESSAGE(STATUS "  C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}")
540  MESSAGE(STATUS "  Rebuild char tables ............. : " ${PCRE_REBUILD_CHARTABLES})    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")
541  MESSAGE(STATUS "  No stack recursion .............. : " ${PCRE_NO_RECURSE})    MESSAGE(STATUS "")
542  MESSAGE(STATUS "  POSIX mem threshold ............. : " ${PCRE_POSIX_MALLOC_THRESHOLD})    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")
543  MESSAGE(STATUS "  Internal link size .............. : " ${PCRE_LINK_SIZE})    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
544  MESSAGE(STATUS "  Match limit ..................... : " ${PCRE_MATCH_LIMIT})    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
545  MESSAGE(STATUS "  Match limit recursion ........... : " ${PCRE_MATCH_LIMIT_RECURSION})    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")
546  MESSAGE(STATUS "  Build shared libs ............... : " ${BUILD_SHARED_LIBS})    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")
547  MESSAGE(STATUS "  Build static libs ............... : " ${BUILD_STATIC_LIBS})    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")
548  IF(ZLIB_FOUND)    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")
549    MESSAGE(STATUS "  Link pcregrep with libz ......... : " ${PCRE_SUPPORT_LIBZ})    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")
550  ELSE(ZLIB_FOUND)    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")
551    MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )    MESSAGE(STATUS "  Internal link size .............. : ${PCRE_LINK_SIZE}")
552  ENDIF(ZLIB_FOUND)    MESSAGE(STATUS "  Match limit ..................... : ${PCRE_MATCH_LIMIT}")
553  IF(BZIP2_FOUND)    MESSAGE(STATUS "  Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}")
554    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : " ${PCRE_SUPPORT_LIBBZ2})    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")
555  ELSE(BZIP2_FOUND)    MESSAGE(STATUS "  Build static libs ............... : ${BUILD_STATIC_LIBS}")
556    MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")
557  ENDIF(BZIP2_FOUND)    MESSAGE(STATUS "  Build tests (implies pcretest) .. : ${PCRE_BUILD_TESTS}")
558  IF(NOT PCRE_SUPPORT_LIBREADLINE)    IF(ZLIB_FOUND)
559    MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")
560  ELSE(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(ZLIB_FOUND)
561    MESSAGE(STATUS "  Link pcretest with libreadline .. : " ${PCRE_SUPPORT_LIBREADLINE})      MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )
562  ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)    ENDIF(ZLIB_FOUND)
563  IF(MINGW AND NOT PCRE_STATIC)    IF(BZIP2_FOUND)
564    MESSAGE(STATUS "  Non-standard dll names (prefix) . : " ${NON_STANDARD_LIB_PREFIX})      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")
565    MESSAGE(STATUS "  Non-standard dll names (suffix) . : " ${NON_STANDARD_LIB_SUFFIX})    ELSE(BZIP2_FOUND)
566  ENDIF(MINGW AND NOT PCRE_STATIC)      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )
567  MESSAGE(STATUS "")    ENDIF(BZIP2_FOUND)
568      IF(NOT PCRE_SUPPORT_LIBREADLINE)
569        MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )
570      ELSE(NOT PCRE_SUPPORT_LIBREADLINE)
571        MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")
572      ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)
573      IF(MINGW AND NOT PCRE_STATIC)
574        MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")
575        MESSAGE(STATUS "  Non-standard dll names (suffix) . : ${NON_STANDARD_LIB_SUFFIX}")
576      ENDIF(MINGW AND NOT PCRE_STATIC)
577      MESSAGE(STATUS "")
578    ENDIF(PCRE_SHOW_REPORT)
579    
580  # end CMakeLists.txt  # end CMakeLists.txt

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12