/[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 1221 by ph10, Sun Nov 11 20:27:03 2012 UTC revision 1404 by ph10, Tue Nov 19 15:36:57 2013 UTC
# Line 60  Line 60 
60  # 2012-09-06 PH added support for PCRE_EBCDIC_NL25  # 2012-09-06 PH added support for PCRE_EBCDIC_NL25
61  # 2012-09-08 ChPe added PCRE32 support  # 2012-09-08 ChPe added PCRE32 support
62  # 2012-10-23 PH added support for VALGRIND and GCOV  # 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    # 2013-11-05 PH added support for PARENS_NEST_LIMIT
68    
69  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
70    
# Line 128  SET(PCRE_EBCDIC_NL25 OFF CACHE BOOL Line 133  SET(PCRE_EBCDIC_NL25 OFF CACHE BOOL
133  SET(PCRE_LINK_SIZE "2" CACHE STRING  SET(PCRE_LINK_SIZE "2" CACHE STRING
134      "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.")
135    
136    SET(PCRE_PARENS_NEST_LIMIT "250" CACHE STRING
137        "Default nested parentheses limit. See PARENS_NEST_LIMIT in config.h.in for details.")
138    
139  SET(PCRE_MATCH_LIMIT "10000000" CACHE STRING  SET(PCRE_MATCH_LIMIT "10000000" CACHE STRING
140      "Default limit on internal looping. See MATCH_LIMIT in config.h.in for details.")      "Default limit on internal looping. See MATCH_LIMIT in config.h.in for details.")
141    
# Line 164  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE B Line 172  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE B
172  SET(PCRE_SUPPORT_VALGRIND OFF CACHE BOOL  SET(PCRE_SUPPORT_VALGRIND OFF CACHE BOOL
173      "Enable Valgrind support.")      "Enable Valgrind support.")
174    
 SET(PCRE_SUPPORT_COVERAGE OFF CACHE BOOL  
     "Enable code coverage support using gcov.")  
   
175  OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)  OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)
176  OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)  OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)
177  OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)  OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)
# Line 296  IF(PCRE_SUPPORT_VALGRIND) Line 301  IF(PCRE_SUPPORT_VALGRIND)
301          SET(SUPPORT_VALGRIND 1)          SET(SUPPORT_VALGRIND 1)
302  ENDIF(PCRE_SUPPORT_VALGRIND)  ENDIF(PCRE_SUPPORT_VALGRIND)
303    
 IF(PCRE_SUPPORT_COVERAGE)  
         SET(SUPPORT_GCOV 1)  
         IF(NOT CMAKE_COMPILER_IS_GNUCC)  
             MESSAGE(FATAL_ERROR "Code coverage reports can only be generated when using GCC")  
         ENDIF(NOT CMAKE_COMPILER_IS_GNUCC)  
 ENDIF(PCRE_SUPPORT_COVERAGE)  
   
304  # This next one used to contain  # This next one used to contain
305  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
306  # 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 570  SET(PCRECPP_SOURCES Line 568  SET(PCRECPP_SOURCES
568  ADD_DEFINITIONS(-DHAVE_CONFIG_H)  ADD_DEFINITIONS(-DHAVE_CONFIG_H)
569    
570  IF(MSVC)  IF(MSVC)
571          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)          ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
572  ENDIF(MSVC)  ENDIF(MSVC)
573    
574  SET(CMAKE_INCLUDE_CURRENT_DIR 1)  SET(CMAKE_INCLUDE_CURRENT_DIR 1)
# Line 772  MESSAGE(\" \") Line 770  MESSAGE(\" \")
770  # This is a generated file.  # This is a generated file.
771  srcdir=${PROJECT_SOURCE_DIR}  srcdir=${PROJECT_SOURCE_DIR}
772  pcretest=${PCRETEST_EXE}  pcretest=${PCRETEST_EXE}
773  source ${PROJECT_SOURCE_DIR}/RunTest  . ${PROJECT_SOURCE_DIR}/RunTest
774  if test \"$?\" != \"0\"; then exit 1; fi  if test \"$?\" != \"0\"; then exit 1; fi
775  # End  # End
776  ")  ")
# Line 788  if test \"$?\" != \"0\"; then exit 1; fi Line 786  if test \"$?\" != \"0\"; then exit 1; fi
786  srcdir=${PROJECT_SOURCE_DIR}  srcdir=${PROJECT_SOURCE_DIR}
787  pcregrep=${PCREGREP_EXE}  pcregrep=${PCREGREP_EXE}
788  pcretest=${PCRETEST_EXE}  pcretest=${PCRETEST_EXE}
789  source ${PROJECT_SOURCE_DIR}/RunGrepTest  . ${PROJECT_SOURCE_DIR}/RunGrepTest
790  if test \"$?\" != \"0\"; then exit 1; fi  if test \"$?\" != \"0\"; then exit 1; fi
791  # End  # End
792  ")  ")
# Line 917  IF(PCRE_SHOW_REPORT) Line 915  IF(PCRE_SHOW_REPORT)
915    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")
916    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")
917    MESSAGE(STATUS "  Internal link size .............. : ${PCRE_LINK_SIZE}")    MESSAGE(STATUS "  Internal link size .............. : ${PCRE_LINK_SIZE}")
918      MESSAGE(STATUS "  Parentheses nest limit .......... : ${PCRE_PARENS_NEST_LIMIT}")
919    MESSAGE(STATUS "  Match limit ..................... : ${PCRE_MATCH_LIMIT}")    MESSAGE(STATUS "  Match limit ..................... : ${PCRE_MATCH_LIMIT}")
920    MESSAGE(STATUS "  Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}")    MESSAGE(STATUS "  Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}")
921    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")

Legend:
Removed from v.1221  
changed lines
  Added in v.1404

  ViewVC Help
Powered by ViewVC 1.1.5