/[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 407 by ph10, Mon Mar 23 15:29:18 2009 UTC revision 475 by ph10, Sat Jan 2 18:21:30 2010 UTC
# Line 33  Line 33 
33  # 2009-03-23 PH applied a modified version of Steven Van Ingelgem's patches to  # 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  #            add options to stop the building of pcregrep and the tests, and
35  #            to disable the final configuration report.  #            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    
# Line 53  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 117  OPTION(PCRE_BUILD_TESTS    "Build the te Line 121  OPTION(PCRE_BUILD_TESTS    "Build the te
121    
122  IF (PCRE_BUILD_TESTS)  IF (PCRE_BUILD_TESTS)
123    IF (NOT PCRE_BUILD_PCREGREP)    IF (NOT PCRE_BUILD_PCREGREP)
124      MESSAGE(STATUS "** Building tests requires pcregrep: PCRE_BUILD_PCREGREP forced ON")      MESSAGE(STATUS "** Building tests requires pcregrep: PCRE_BUILD_PCREGREP forced ON")
125      SET(PCRE_BUILD_PCREGREP ON)      SET(PCRE_BUILD_PCREGREP ON)
126    ENDIF(NOT PCRE_BUILD_PCREGREP)    ENDIF(NOT PCRE_BUILD_PCREGREP)
127  ENDIF(PCRE_BUILD_TESTS)  ENDIF(PCRE_BUILD_TESTS)
128    
129  IF (MINGW)  IF (MINGW)
130    OPTION(NON_STANDARD_LIB_PREFIX    OPTION(NON_STANDARD_LIB_PREFIX
# Line 518  ELSE(BUILD_SHARED_LIBS) Line 522  ELSE(BUILD_SHARED_LIBS)
522  ENDIF(BUILD_SHARED_LIBS)  ENDIF(BUILD_SHARED_LIBS)
523    
524  IF(PCRE_SHOW_REPORT)  IF(PCRE_SHOW_REPORT)
525      STRING(TOUPPER "${CMAKE_BUILD_TYPE}" buildtype)
526      IF (CMAKE_C_FLAGS)
527        SET(cfsp " ")
528      ENDIF(CMAKE_C_FLAGS)
529      IF (CMAKE_CXX_FLAGS)
530        SET(cxxfsp " ")
531      ENDIF(CMAKE_CXX_FLAGS)
532    MESSAGE(STATUS "")    MESSAGE(STATUS "")
533    MESSAGE(STATUS "")    MESSAGE(STATUS "")
534    MESSAGE(STATUS "PCRE configuration summary:")    MESSAGE(STATUS "PCRE configuration summary:")
535    MESSAGE(STATUS "")    MESSAGE(STATUS "")
536    MESSAGE(STATUS "  Install prefix .................. : " ${CMAKE_INSTALL_PREFIX})    MESSAGE(STATUS "  Install prefix .................. : ${CMAKE_INSTALL_PREFIX}")
537    MESSAGE(STATUS "  C compiler ...................... : " ${CMAKE_C_COMPILER})    MESSAGE(STATUS "  C compiler ...................... : ${CMAKE_C_COMPILER}")
538    MESSAGE(STATUS "  C++ compiler .................... : " ${CMAKE_CXX_COMPILER})    MESSAGE(STATUS "  C++ compiler .................... : ${CMAKE_CXX_COMPILER}")
539    MESSAGE(STATUS "  C compiler flags ................ : " ${CMAKE_C_FLAGS})   #FIXME    MESSAGE(STATUS "  C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}")
540    MESSAGE(STATUS "  C++ compiler flags .............. : " ${CMAKE_CXX_FLAGS}) #FIXME    MESSAGE(STATUS "  C++ compiler flags .............. : ${CMAKE_CXX_FLAGS}${cxxfsp}${CMAKE_CXX_FLAGS_${buildtype}}")
541    MESSAGE(STATUS "")    MESSAGE(STATUS "")
542    MESSAGE(STATUS "  Build C++ library ............... : " ${PCRE_BUILD_PCRECPP})    MESSAGE(STATUS "  Build C++ library ............... : ${PCRE_BUILD_PCRECPP}")
543    MESSAGE(STATUS "  Enable UTF-8 support ............ : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})    MESSAGE(STATUS "  Enable UTF-8 support ............ : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
544    MESSAGE(STATUS "  Unicode properties .............. : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})    MESSAGE(STATUS "  Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
545    MESSAGE(STATUS "  Newline char/sequence ........... : " ${PCRE_NEWLINE})    MESSAGE(STATUS "  Newline char/sequence ........... : ${PCRE_NEWLINE}")
546    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : " ${PCRE_SUPPORT_BSR_ANYCRLF})    MESSAGE(STATUS "  \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")
547    MESSAGE(STATUS "  EBCDIC coding ................... : " ${PCRE_EBCDIC})    MESSAGE(STATUS "  EBCDIC coding ................... : ${PCRE_EBCDIC}")
548    MESSAGE(STATUS "  Rebuild char tables ............. : " ${PCRE_REBUILD_CHARTABLES})    MESSAGE(STATUS "  Rebuild char tables ............. : ${PCRE_REBUILD_CHARTABLES}")
549    MESSAGE(STATUS "  No stack recursion .............. : " ${PCRE_NO_RECURSE})    MESSAGE(STATUS "  No stack recursion .............. : ${PCRE_NO_RECURSE}")
550    MESSAGE(STATUS "  POSIX mem threshold ............. : " ${PCRE_POSIX_MALLOC_THRESHOLD})    MESSAGE(STATUS "  POSIX mem threshold ............. : ${PCRE_POSIX_MALLOC_THRESHOLD}")
551    MESSAGE(STATUS "  Internal link size .............. : " ${PCRE_LINK_SIZE})    MESSAGE(STATUS "  Internal link size .............. : ${PCRE_LINK_SIZE}")
552    MESSAGE(STATUS "  Match limit ..................... : " ${PCRE_MATCH_LIMIT})    MESSAGE(STATUS "  Match limit ..................... : ${PCRE_MATCH_LIMIT}")
553    MESSAGE(STATUS "  Match limit recursion ........... : " ${PCRE_MATCH_LIMIT_RECURSION})    MESSAGE(STATUS "  Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}")
554    MESSAGE(STATUS "  Build shared libs ............... : " ${BUILD_SHARED_LIBS})    MESSAGE(STATUS "  Build shared libs ............... : ${BUILD_SHARED_LIBS}")
555    MESSAGE(STATUS "  Build static libs ............... : " ${BUILD_STATIC_LIBS})    MESSAGE(STATUS "  Build static libs ............... : ${BUILD_STATIC_LIBS}")
556    MESSAGE(STATUS "  Build pcregrep .................. : " ${PCRE_BUILD_PCREGREP})    MESSAGE(STATUS "  Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")
557    MESSAGE(STATUS "  Build tests (implies pcretest) .. : " ${PCRE_BUILD_TESTS})    MESSAGE(STATUS "  Build tests (implies pcretest) .. : ${PCRE_BUILD_TESTS}")
558    IF(ZLIB_FOUND)    IF(ZLIB_FOUND)
559      MESSAGE(STATUS "  Link pcregrep with libz ......... : " ${PCRE_SUPPORT_LIBZ})      MESSAGE(STATUS "  Link pcregrep with libz ......... : ${PCRE_SUPPORT_LIBZ}")
560    ELSE(ZLIB_FOUND)    ELSE(ZLIB_FOUND)
561      MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )      MESSAGE(STATUS "  Link pcregrep with libz ......... : None" )
562    ENDIF(ZLIB_FOUND)    ENDIF(ZLIB_FOUND)
563    IF(BZIP2_FOUND)    IF(BZIP2_FOUND)
564      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : " ${PCRE_SUPPORT_LIBBZ2})      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : ${PCRE_SUPPORT_LIBBZ2}")
565    ELSE(BZIP2_FOUND)    ELSE(BZIP2_FOUND)
566      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )      MESSAGE(STATUS "  Link pcregrep with libbz2 ....... : None" )
567    ENDIF(BZIP2_FOUND)    ENDIF(BZIP2_FOUND)
568    IF(NOT PCRE_SUPPORT_LIBREADLINE)    IF(NOT PCRE_SUPPORT_LIBREADLINE)
569      MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )      MESSAGE(STATUS "  Link pcretest with libreadline .. : None" )
570    ELSE(NOT PCRE_SUPPORT_LIBREADLINE)    ELSE(NOT PCRE_SUPPORT_LIBREADLINE)
571      MESSAGE(STATUS "  Link pcretest with libreadline .. : " ${PCRE_SUPPORT_LIBREADLINE})      MESSAGE(STATUS "  Link pcretest with libreadline .. : ${PCRE_SUPPORT_LIBREADLINE}")
572    ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)    ENDIF(NOT PCRE_SUPPORT_LIBREADLINE)
573    IF(MINGW AND NOT PCRE_STATIC)    IF(MINGW AND NOT PCRE_STATIC)
574      MESSAGE(STATUS "  Non-standard dll names (prefix) . : " ${NON_STANDARD_LIB_PREFIX})      MESSAGE(STATUS "  Non-standard dll names (prefix) . : ${NON_STANDARD_LIB_PREFIX}")
575      MESSAGE(STATUS "  Non-standard dll names (suffix) . : " ${NON_STANDARD_LIB_SUFFIX})      MESSAGE(STATUS "  Non-standard dll names (suffix) . : ${NON_STANDARD_LIB_SUFFIX}")
576    ENDIF(MINGW AND NOT PCRE_STATIC)    ENDIF(MINGW AND NOT PCRE_STATIC)
577    MESSAGE(STATUS "")    MESSAGE(STATUS "")
578  ENDIF(PCRE_SHOW_REPORT)  ENDIF(PCRE_SHOW_REPORT)

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

  ViewVC Help
Powered by ViewVC 1.1.5