/[pcre]/code/trunk/CMakeLists.txt
ViewVC logotype

Contents of /code/trunk/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 303 - (hide annotations) (download)
Sun Jan 20 19:39:43 2008 UTC (6 years, 9 months ago) by ph10
File MIME type: text/plain
File size: 14349 byte(s)
Apply Christian Ehrlicher's patch to update the CMake files.

1 ph10 137 # CMakeLists.txt
2     #
3 ph10 258 #
4 ph10 137 # This file allows building PCRE with the CMake configuration and build
5     # tool. Download CMake in source or binary form from http://www.cmake.org/
6     #
7     # Original listfile by Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
8     # Refined and expanded by Daniel Richard G. <skunk@iSKUNK.ORG>
9 ph10 258 # 2007-09-14 mod by Sheri so 7.4 supported configuration options can be entered
10     # 2007-09-19 Adjusted by PH to retain previous default settings
11 ph10 291 # 2007-12-26 (a) On UNIX, use names libpcre instead of just pcre
12     # (b) Ensure pcretest and pcregrep link with the local library,
13     # not a previously-installed one.
14     # (c) Add PCRE_SUPPORT_LIBREADLINE, PCRE_SUPPORT_LIBZ, and
15     # PCRE_SUPPORT_LIBBZ2.
16 ph10 303 # 2008-01-20 Brought up to date to include several new features by Christian
17     # Ehrlicher.
18 ph10 137 #
19    
20     PROJECT(PCRE C CXX)
21    
22     CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6)
23    
24 ph10 303 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) # for FindReadline.cmake
25    
26     # external packages
27     FIND_PACKAGE( BZip2 )
28     FIND_PACKAGE( ZLIB )
29     FIND_PACKAGE( Readline )
30    
31 ph10 137 # Configuration checks
32    
33     INCLUDE(CheckIncludeFile)
34     INCLUDE(CheckIncludeFileCXX)
35     INCLUDE(CheckFunctionExists)
36     INCLUDE(CheckTypeSize)
37    
38 ph10 303 CHECK_INCLUDE_FILE(dirent.h HAVE_DIRENT_H)
39 ph10 137 CHECK_INCLUDE_FILE(sys/stat.h HAVE_SYS_STAT_H)
40     CHECK_INCLUDE_FILE(sys/types.h HAVE_SYS_TYPES_H)
41 ph10 303 CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
42     CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H)
43 ph10 137
44     CHECK_INCLUDE_FILE_CXX(type_traits.h HAVE_TYPE_TRAITS_H)
45     CHECK_INCLUDE_FILE_CXX(bits/type_traits.h HAVE_BITS_TYPE_TRAITS_H)
46    
47     CHECK_FUNCTION_EXISTS(bcopy HAVE_BCOPY)
48     CHECK_FUNCTION_EXISTS(memmove HAVE_MEMMOVE)
49     CHECK_FUNCTION_EXISTS(strerror HAVE_STRERROR)
50 ph10 303 CHECK_FUNCTION_EXISTS(strtoll HAVE_STRTOLL)
51     CHECK_FUNCTION_EXISTS(strtoq HAVE_STRTOQ)
52     CHECK_FUNCTION_EXISTS(_strtoi64 HAVE__STRTOI64)
53 ph10 137
54     CHECK_TYPE_SIZE("long long" LONG_LONG)
55     CHECK_TYPE_SIZE("unsigned long long" UNSIGNED_LONG_LONG)
56    
57     # User-configurable options
58     #
59     # (Note: CMakeSetup displays these in alphabetical order, regardless of
60     # the order we use here)
61    
62 ph10 144 SET(BUILD_SHARED_LIBS OFF CACHE BOOL
63     "Build shared libraries instead of static ones.")
64 ph10 137
65     OPTION(PCRE_BUILD_PCRECPP "Build the PCRE C++ library (pcrecpp)." ON)
66    
67 ph10 144 SET(PCRE_EBCDIC OFF CACHE BOOL
68 ph10 137 "Use EBCDIC coding instead of ASCII. (This is rarely used outside of mainframe systems)")
69    
70     SET(PCRE_LINK_SIZE "2" CACHE STRING
71     "Internal link size (2, 3 or 4 allowed). See LINK_SIZE in config.h.in for details.")
72    
73     SET(PCRE_MATCH_LIMIT "10000000" CACHE STRING
74     "Default limit on internal looping. See MATCH_LIMIT in config.h.in for details.")
75    
76     SET(PCRE_MATCH_LIMIT_RECURSION "MATCH_LIMIT" CACHE STRING
77     "Default limit on internal recursion. See MATCH_LIMIT_RECURSION in config.h.in for details.")
78    
79     SET(PCRE_NEWLINE "LF" CACHE STRING
80 ph10 258 "What to recognize as a newline (one of CR, LF, CRLF, ANY, ANYCRLF).")
81 ph10 137
82 ph10 199 SET(PCRE_NO_RECURSE OFF CACHE BOOL
83 ph10 137 "If ON, then don't use stack recursion when matching. See NO_RECURSE in config.h.in for details.")
84    
85     SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING
86     "Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.")
87    
88 ph10 144 SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
89 ph10 137 "Enable support for Unicode properties. (If set, UTF-8 support will be enabled as well)")
90    
91 ph10 144 SET(PCRE_SUPPORT_UTF8 OFF CACHE BOOL
92 ph10 137 "Enable support for the Unicode UTF-8 encoding.")
93    
94 ph10 258 SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
95     "ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks")
96    
97 ph10 303 # bzip2 lib
98     IF(BZIP2_FOUND)
99     OPTION (PCRE_SUPPORT_LIBBZ2 "Enable support for linking pcregrep with libbz2." ON)
100     ENDIF(BZIP2_FOUND)
101     IF(PCRE_SUPPORT_LIBBZ2)
102     INCLUDE_DIRECTORIES(${BZIP2_INCLUDE_DIR})
103     ENDIF(PCRE_SUPPORT_LIBBZ2)
104 ph10 292
105 ph10 303 # zlib
106     IF(ZLIB_FOUND)
107     OPTION (PCRE_SUPPORT_LIBZ "Enable support for linking pcregrep with libz." ON)
108     ENDIF(ZLIB_FOUND)
109     IF(PCRE_SUPPORT_LIBZ)
110     INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
111     ENDIF(PCRE_SUPPORT_LIBZ)
112 ph10 292
113 ph10 303 # readline lib
114     IF(READLINE_FOUND)
115     OPTION (PCRE_SUPPORT_LIBREADLINE "Enable support for linking pcretest with libreadline." ON)
116     ENDIF(READLINE_FOUND)
117     IF(PCRE_SUPPORT_LIBREADLINE)
118     INCLUDE_DIRECTORIES(${READLINE_INCLUDE_DIR})
119     ENDIF(PCRE_SUPPORT_LIBREADLINE)
120 ph10 291
121 ph10 137 # Prepare build configuration
122    
123     SET(pcre_have_type_traits 0)
124     SET(pcre_have_bits_type_traits 0)
125    
126     IF(HAVE_TYPE_TRAITS_H)
127     SET(pcre_have_type_traits 1)
128     ENDIF(HAVE_TYPE_TRAITS_H)
129    
130     IF(HAVE_BITS_TYPE_TRAITS_H)
131     SET(pcre_have_bits_type_traits 1)
132     ENDIF(HAVE_BITS_TYPE_TRAITS_H)
133    
134     SET(pcre_have_long_long 0)
135     SET(pcre_have_ulong_long 0)
136    
137     IF(HAVE_LONG_LONG)
138     SET(pcre_have_long_long 1)
139     ENDIF(HAVE_LONG_LONG)
140    
141     IF(HAVE_UNSIGNED_LONG_LONG)
142     SET(pcre_have_ulong_long 1)
143     ENDIF(HAVE_UNSIGNED_LONG_LONG)
144    
145 ph10 144 IF(NOT BUILD_SHARED_LIBS)
146     SET(PCRE_STATIC 1)
147     ENDIF(NOT BUILD_SHARED_LIBS)
148    
149 ph10 258 IF(PCRE_SUPPORT_BSR_ANYCRLF)
150     SET(BSR_ANYCRLF 1)
151     ENDIF(PCRE_SUPPORT_BSR_ANYCRLF)
152    
153 ph10 137 IF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)
154     SET(SUPPORT_UTF8 1)
155     ENDIF(PCRE_SUPPORT_UTF8 OR PCRE_SUPPORT_UNICODE_PROPERTIES)
156    
157     IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
158     SET(SUPPORT_UCP 1)
159     ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
160    
161 ph10 291 IF(PCRE_SUPPORT_LIBREADLINE)
162     SET(SUPPORT_LIBREADLINE 1)
163 ph10 303 SET(PCRETEST_LIBS ${READLINE_LIBRARY})
164 ph10 291 ENDIF(PCRE_SUPPORT_LIBREADLINE)
165    
166     IF(PCRE_SUPPORT_LIBZ)
167     SET(SUPPORT_LIBZ 1)
168 ph10 303 SET(PCREGREP_LIBS ${PCREGREP_LIBS} ${ZLIB_LIBRARIES})
169 ph10 291 ENDIF(PCRE_SUPPORT_LIBZ)
170    
171     IF(PCRE_SUPPORT_LIBBZ2)
172     SET(SUPPORT_LIBBZ2 1)
173 ph10 303 SET(PCREGREP_LIBS ${PCREGREP_LIBS} ${BZIP2_LIBRARIES})
174 ph10 292 ENDIF(PCRE_SUPPORT_LIBBZ2)
175 ph10 291
176 ph10 144 SET(NEWLINE "")
177    
178 ph10 137 IF(PCRE_NEWLINE STREQUAL "LF")
179 ph10 144 SET(NEWLINE "10")
180     ENDIF(PCRE_NEWLINE STREQUAL "LF")
181     IF(PCRE_NEWLINE STREQUAL "CR")
182     SET(NEWLINE "13")
183     ENDIF(PCRE_NEWLINE STREQUAL "CR")
184     IF(PCRE_NEWLINE STREQUAL "CRLF")
185     SET(NEWLINE "3338")
186     ENDIF(PCRE_NEWLINE STREQUAL "CRLF")
187     IF(PCRE_NEWLINE STREQUAL "ANY")
188 ph10 137 SET(NEWLINE "-1")
189 ph10 144 ENDIF(PCRE_NEWLINE STREQUAL "ANY")
190 ph10 258 IF(PCRE_NEWLINE STREQUAL "ANYCRLF")
191     SET(NEWLINE "-2")
192     ENDIF(PCRE_NEWLINE STREQUAL "ANYCRLF")
193 ph10 144
194     IF(NEWLINE STREQUAL "")
195 ph10 258 MESSAGE(FATAL_ERROR "The PCRE_NEWLINE variable must be set to one of the following values: \"LF\", \"CR\", \"CRLF\", \"ANY\", \"ANYCRLF\".")
196 ph10 144 ENDIF(NEWLINE STREQUAL "")
197 ph10 137
198     IF(PCRE_EBCDIC)
199     SET(EBCDIC 1)
200     ENDIF(PCRE_EBCDIC)
201    
202     IF(PCRE_NO_RECURSE)
203     SET(NO_RECURSE 1)
204     ENDIF(PCRE_NO_RECURSE)
205    
206     # Output files
207    
208     CONFIGURE_FILE(config-cmake.h.in
209     ${CMAKE_BINARY_DIR}/config.h
210     @ONLY)
211    
212     CONFIGURE_FILE(pcre.h.generic
213     ${CMAKE_BINARY_DIR}/pcre.h
214     COPYONLY)
215    
216     # What about pcre-config and libpcre.pc?
217    
218     IF(PCRE_BUILD_PCRECPP)
219     CONFIGURE_FILE(pcre_stringpiece.h.in
220 ph10 140 ${CMAKE_BINARY_DIR}/pcre_stringpiece.h
221     @ONLY)
222 ph10 137
223     CONFIGURE_FILE(pcrecpparg.h.in
224 ph10 140 ${CMAKE_BINARY_DIR}/pcrecpparg.h
225     @ONLY)
226 ph10 137 ENDIF(PCRE_BUILD_PCRECPP)
227    
228     # Character table generation
229    
230 ph10 303 OPTION(PCRE_REBUILD_CHARTABLES "Rebuild char tables" OFF)
231     IF(PCRE_REBUILD_CHARTABLES)
232     ADD_EXECUTABLE(dftables dftables.c)
233 ph10 137
234 ph10 303 GET_TARGET_PROPERTY(DFTABLES_EXE dftables LOCATION)
235 ph10 137
236 ph10 303 ADD_CUSTOM_COMMAND(
237     COMMENT "Generating character tables (pcre_chartables.c) for current locale"
238     DEPENDS dftables
239     COMMAND ${DFTABLES_EXE}
240     ARGS ${CMAKE_BINARY_DIR}/pcre_chartables.c
241     OUTPUT ${CMAKE_BINARY_DIR}/pcre_chartables.c
242     )
243     ELSE(PCRE_REBUILD_CHARTABLES)
244     CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pcre_chartables.c.dist
245     ${CMAKE_BINARY_DIR}/pcre_chartables.c
246     COPYONLY)
247     ENDIF(PCRE_REBUILD_CHARTABLES)
248 ph10 137
249     # Source code
250    
251     SET(PCRE_HEADERS ${CMAKE_BINARY_DIR}/pcre.h)
252    
253     SET(PCRE_SOURCES
254 ph10 303 ${CMAKE_BINARY_DIR}/pcre_chartables.c
255     pcre_compile.c
256     pcre_config.c
257     pcre_dfa_exec.c
258     pcre_exec.c
259     pcre_fullinfo.c
260     pcre_get.c
261     pcre_globals.c
262     pcre_info.c
263     pcre_newline.c
264     pcre_maketables.c
265     pcre_ord2utf8.c
266     pcre_refcount.c
267     pcre_study.c
268     pcre_tables.c
269     pcre_try_flipped.c
270     pcre_ucp_searchfuncs.c
271     pcre_valid_utf8.c
272     pcre_version.c
273     pcre_xclass.c
274 ph10 137 )
275    
276     SET(PCREPOSIX_HEADERS pcreposix.h)
277    
278     SET(PCREPOSIX_SOURCES pcreposix.c)
279    
280     SET(PCRECPP_HEADERS
281 ph10 303 pcrecpp.h
282     pcre_scanner.h
283     ${CMAKE_BINARY_DIR}/pcrecpparg.h
284     ${CMAKE_BINARY_DIR}/pcre_stringpiece.h
285 ph10 137 )
286    
287     SET(PCRECPP_SOURCES
288     pcrecpp.cc
289     pcre_scanner.cc
290     pcre_stringpiece.cc
291     )
292    
293     # Build setup
294    
295     ADD_DEFINITIONS(-DHAVE_CONFIG_H)
296    
297 ph10 303 IF(MSVC)
298 ph10 137 ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
299 ph10 303 ENDIF(MSVC)
300 ph10 137
301     SET(CMAKE_INCLUDE_CURRENT_DIR 1)
302 ph10 303 # needed to make sure to not link debug libs
303     # against release libs and vice versa
304     IF(WIN32)
305     SET(CMAKE_DEBUG_POSTFIX "d")
306     ENDIF(WIN32)
307 ph10 137
308     # Libraries
309    
310 ph10 303 ADD_LIBRARY(pcre ${PCRE_HEADERS} ${PCRE_SOURCES} ${CMAKE_BINARY_DIR}/config.h)
311 ph10 137 ADD_LIBRARY(pcreposix ${PCREPOSIX_HEADERS} ${PCREPOSIX_SOURCES})
312     TARGET_LINK_LIBRARIES(pcreposix pcre)
313    
314     IF(PCRE_BUILD_PCRECPP)
315 ph10 303 ADD_LIBRARY(pcrecpp ${PCRECPP_HEADERS} ${PCRECPP_SOURCES})
316     TARGET_LINK_LIBRARIES(pcrecpp pcre)
317 ph10 137 ENDIF(PCRE_BUILD_PCRECPP)
318    
319     # Executables
320    
321     ADD_EXECUTABLE(pcretest pcretest.c)
322 ph10 291 TARGET_LINK_LIBRARIES(pcretest pcreposix ${PCRETEST_LIBS})
323 ph10 137
324     ADD_EXECUTABLE(pcregrep pcregrep.c)
325 ph10 291 TARGET_LINK_LIBRARIES(pcregrep pcreposix ${PCREGREP_LIBS})
326 ph10 137
327 ph10 303 ADD_EXECUTABLE(pcredemo pcredemo.c)
328     TARGET_LINK_LIBRARIES(pcredemo pcreposix)
329     IF(NOT BUILD_SHARED_LIBS)
330     # make sure to not use declspec(dllimport) in static mode on windows
331     SET_TARGET_PROPERTIES(pcredemo PROPERTIES COMPILE_FLAGS "-DPCRE_STATIC")
332     ENDIF(NOT BUILD_SHARED_LIBS)
333    
334 ph10 144 IF(PCRE_BUILD_PCRECPP)
335     ADD_EXECUTABLE(pcrecpp_unittest pcrecpp_unittest.cc)
336     TARGET_LINK_LIBRARIES(pcrecpp_unittest pcrecpp)
337    
338     ADD_EXECUTABLE(pcre_scanner_unittest pcre_scanner_unittest.cc)
339     TARGET_LINK_LIBRARIES(pcre_scanner_unittest pcrecpp)
340    
341     ADD_EXECUTABLE(pcre_stringpiece_unittest pcre_stringpiece_unittest.cc)
342     TARGET_LINK_LIBRARIES(pcre_stringpiece_unittest pcrecpp)
343     ENDIF(PCRE_BUILD_PCRECPP)
344    
345 ph10 137 # Testing
346    
347     ENABLE_TESTING()
348    
349 ph10 144 GET_TARGET_PROPERTY(PCREGREP_EXE pcregrep DEBUG_LOCATION)
350     GET_TARGET_PROPERTY(PCRETEST_EXE pcretest DEBUG_LOCATION)
351    
352     # Write out a CTest configuration file that sets some needed environment
353     # variables for the test scripts.
354     #
355     FILE(WRITE ${CMAKE_BINARY_DIR}/CTestCustom.ctest
356     "# This is a generated file.
357     SET(ENV{srcdir} ${CMAKE_SOURCE_DIR})
358     SET(ENV{pcregrep} ${PCREGREP_EXE})
359     SET(ENV{pcretest} ${PCRETEST_EXE})
360     ")
361    
362 ph10 137 IF(UNIX)
363 ph10 199 ADD_TEST(pcre_test ${CMAKE_SOURCE_DIR}/RunTest)
364 ph10 144 ADD_TEST(pcre_grep_test ${CMAKE_SOURCE_DIR}/RunGrepTest)
365 ph10 137 ENDIF(UNIX)
366 ph10 144 IF(WIN32)
367     ADD_TEST(pcre_test cmd /C ${CMAKE_SOURCE_DIR}/RunTest.bat)
368     ENDIF(WIN32)
369 ph10 137
370 ph10 144 GET_TARGET_PROPERTY(PCRECPP_UNITTEST_EXE
371     pcrecpp_unittest
372     DEBUG_LOCATION)
373    
374     GET_TARGET_PROPERTY(PCRE_SCANNER_UNITTEST_EXE
375     pcre_scanner_unittest
376     DEBUG_LOCATION)
377    
378     GET_TARGET_PROPERTY(PCRE_STRINGPIECE_UNITTEST_EXE
379     pcre_stringpiece_unittest
380     DEBUG_LOCATION)
381    
382     ADD_TEST(pcrecpp_test ${PCRECPP_UNITTEST_EXE})
383     ADD_TEST(pcre_scanner_test ${PCRE_SCANNER_UNITTEST_EXE})
384     ADD_TEST(pcre_stringpiece_test ${PCRE_STRINGPIECE_UNITTEST_EXE})
385    
386 ph10 137 # Installation
387    
388     SET(CMAKE_INSTALL_ALWAYS 1)
389    
390     INSTALL(TARGETS pcre pcreposix pcregrep pcretest
391     RUNTIME DESTINATION bin
392     LIBRARY DESTINATION lib
393     ARCHIVE DESTINATION lib)
394    
395     INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)
396    
397     FILE(GLOB html ${CMAKE_SOURCE_DIR}/doc/html/*.html)
398     FILE(GLOB man1 ${CMAKE_SOURCE_DIR}/doc/*.1)
399     FILE(GLOB man3 ${CMAKE_SOURCE_DIR}/doc/*.3)
400    
401     IF(PCRE_BUILD_PCRECPP)
402 ph10 200 INSTALL(TARGETS pcrecpp
403 ph10 258 RUNTIME DESTINATION bin
404     LIBRARY DESTINATION lib
405     ARCHIVE DESTINATION lib)
406 ph10 137 INSTALL(FILES ${PCRECPP_HEADERS} DESTINATION include)
407     ELSE(PCRE_BUILD_PCRECPP)
408     # Remove pcrecpp.3
409     FOREACH(man ${man3})
410     GET_FILENAME_COMPONENT(man_tmp ${man} NAME)
411     IF(NOT man_tmp STREQUAL "pcrecpp.3")
412     SET(man3_new ${man3} ${man})
413     ENDIF(NOT man_tmp STREQUAL "pcrecpp.3")
414     ENDFOREACH(man ${man3})
415     SET(man3 ${man3_new})
416     ENDIF(PCRE_BUILD_PCRECPP)
417    
418     INSTALL(FILES ${man1} DESTINATION man/man1)
419     INSTALL(FILES ${man3} DESTINATION man/man3)
420 ph10 199 INSTALL(FILES ${html} DESTINATION share/doc/pcre/html)
421 ph10 137
422 ph10 303 # help, only for nice output
423     IF(BUILD_SHARED_LIBS)
424     SET(BUILD_STATIC_LIBS OFF)
425     ELSE(BUILD_SHARED_LIBS)
426     SET(BUILD_STATIC_LIBS ON)
427     ENDIF(BUILD_SHARED_LIBS)
428    
429     MESSAGE(STATUS "")
430     MESSAGE(STATUS "")
431     MESSAGE(STATUS "PCRE configuration summary:")
432     MESSAGE(STATUS "")
433     MESSAGE(STATUS " Install prefix .................. : " ${CMAKE_INSTALL_PREFIX})
434     MESSAGE(STATUS " C compiler ...................... : " ${CMAKE_C_COMPILER})
435     MESSAGE(STATUS " C++ compiler .................... : " ${CMAKE_CXX_COMPILER})
436     MESSAGE(STATUS " C compiler flags ................ : " ${CMAKE_C_FLAGS}) #FIXME
437     MESSAGE(STATUS " C++ compiler flags .............. : " ${CMAKE_CXX_FLAGS}) #FIXME
438     MESSAGE(STATUS "")
439     MESSAGE(STATUS " Build C++ library ............... : " ${PCRE_BUILD_PCRECPP})
440     MESSAGE(STATUS " Enable UTF-8 support ............ : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})
441     MESSAGE(STATUS " Unicode properties .............. : " ${PCRE_SUPPORT_UNICODE_PROPERTIES})
442     MESSAGE(STATUS " Newline char/sequence ........... : " ${PCRE_NEWLINE})
443     MESSAGE(STATUS " \\R matches only ANYCRLF ......... : " ${PCRE_SUPPORT_BSR_ANYCRLF})
444     MESSAGE(STATUS " EBCDIC coding ................... : " ${PCRE_EBCDIC})
445     MESSAGE(STATUS " Rebuild char tables ............. : " ${PCRE_REBUILD_CHARTABLES})
446     MESSAGE(STATUS " Use stack recursion ............. : " ${PCRE_NO_RECURSE})
447     MESSAGE(STATUS " POSIX mem threshold ............. : " ${PCRE_POSIX_MALLOC_THRESHOLD})
448     MESSAGE(STATUS " Internal link size .............. : " ${PCRE_LINK_SIZE})
449     MESSAGE(STATUS " Match limit ..................... : " ${PCRE_MATCH_LIMIT})
450     MESSAGE(STATUS " Match limit recursion ........... : " ${PCRE_MATCH_LIMIT_RECURSION})
451     MESSAGE(STATUS " Build shared libs ............... : " ${BUILD_SHARED_LIBS})
452     MESSAGE(STATUS " Build static libs ............... : " ${BUILD_STATIC_LIBS})
453     IF(ZLIB_FOUND)
454     MESSAGE(STATUS " Link pcregrep with libz ......... : " ${PCRE_SUPPORT_LIBZ})
455     ELSE(ZLIB_FOUND)
456     MESSAGE(STATUS " Link pcregrep with libz ......... : zlib libraries not found!" )
457     ENDIF(ZLIB_FOUND)
458     IF(BZIP2_FOUND)
459     MESSAGE(STATUS " Link pcregrep with libbz2 ....... : " ${PCRE_SUPPORT_LIBBZ2})
460     ELSE(BZIP2_FOUND)
461     MESSAGE(STATUS " Link pcregrep with libbz2 ....... : bzip2 libraries not found!" )
462     ENDIF(BZIP2_FOUND)
463     MESSAGE(STATUS " Link pcretest with libreadline .. : " ${PCRE_SUPPORT_LIBREADLINE})
464     MESSAGE(STATUS "")
465    
466 ph10 137 # end CMakeLists.txt

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12