author | Tero Marttila <terom@fixme.fi> |
Wed, 27 May 2009 23:07:00 +0300 | |
branch | new-lib-errors |
changeset 216 | a10ba529ae39 |
parent 121 | 4682ebbc5644 |
permissions | -rw-r--r-- |
121
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
# Find PCRE |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
# Once done, this will define: |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
# |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
# PCRE_FOUND |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
# PCRE_INCLUDE_DIRS |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
6 |
# PCRE_LIBRARIES |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
7 |
|
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
include (LibFindMacros) |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
9 |
|
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
10 |
# include dir |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
11 |
find_path (PCRE_INCLUDE_DIR |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
12 |
NAMES "pcre.h" |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
13 |
) |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
14 |
|
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
15 |
# library |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
16 |
find_library (PCRE_LIBRARY |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
NAMES "pcre" |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
18 |
) |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
19 |
|
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
20 |
# set the external vars |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
21 |
set (PCRE_PROCESS_INCLUDES PCRE_INCLUDE_DIR) |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
22 |
set (PCRE_PROCESS_LIBS PCRE_LIBRARY) |
4682ebbc5644
implement logwatch_conf_filter such that it compiles and loads, but not yet tested
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
23 |
libfind_process (PCRE) |