/[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 1234 by ph10, Sat Dec 8 16:35:42 2012 UTC revision 1342 by ph10, Mon Jul 1 12:28:12 2013 UTC
# Line 61  Line 61 
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  # 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    
67  PROJECT(PCRE C CXX)  PROJECT(PCRE C CXX)
68    
# Line 165  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE B Line 167  SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE B
167  SET(PCRE_SUPPORT_VALGRIND OFF CACHE BOOL  SET(PCRE_SUPPORT_VALGRIND OFF CACHE BOOL
168      "Enable Valgrind support.")      "Enable Valgrind support.")
169    
 SET(PCRE_SUPPORT_COVERAGE OFF CACHE BOOL  
     "Enable code coverage support using gcov.")  
   
170  OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)  OPTION(PCRE_SHOW_REPORT    "Show the final configuration report" ON)
171  OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)  OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)
172  OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)  OPTION(PCRE_BUILD_TESTS    "Build the tests" ON)
# Line 297  IF(PCRE_SUPPORT_VALGRIND) Line 296  IF(PCRE_SUPPORT_VALGRIND)
296          SET(SUPPORT_VALGRIND 1)          SET(SUPPORT_VALGRIND 1)
297  ENDIF(PCRE_SUPPORT_VALGRIND)  ENDIF(PCRE_SUPPORT_VALGRIND)
298    
 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)  
   
299  # This next one used to contain  # This next one used to contain
300  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})  #       SET(PCRETEST_LIBS ${READLINE_LIBRARY})
301  # 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

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

  ViewVC Help
Powered by ViewVC 1.1.5