File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 7
7
# -----------------
8
8
# To make use of the static library instead of the shared one, one needs
9
9
# to set the variable PCRE2_USE_STATIC_LIBS to ON before calling find_package.
10
+ #
11
+ # The following components are supported: 8BIT, 16BIT, 32BIT and POSIX.
12
+ # They used to be required but not anymore; all available targets will
13
+ # be defined regardless of the requested components.
10
14
# Example:
11
15
# set(PCRE2_USE_STATIC_LIBS ON)
12
- # find_package(PCRE2 CONFIG COMPONENTS 8BIT )
16
+ # find_package(PCRE2 CONFIG)
13
17
#
14
18
# This will define the following variables:
15
19
#
@@ -51,13 +55,6 @@ _pcre2_add_component_target(16BIT 16)
51
55
_pcre2_add_component_target(32BIT 32)
52
56
_pcre2_add_component_target(POSIX posix)
53
57
54
- # Check if at least one component has been specified.
55
- list (LENGTH PCRE2_FIND_COMPONENTS PCRE2_NCOMPONENTS)
56
- if (PCRE2_NCOMPONENTS LESS 1)
57
- message (FATAL_ERROR "No components have been specified. This is not allowed. Please, specify at least one component." )
58
- endif ()
59
- unset (PCRE2_NCOMPONENTS)
60
-
61
58
# When POSIX component has been specified make sure that also 8BIT component is specified.
62
59
set (PCRE2_8BIT_COMPONENT FALSE )
63
60
set (PCRE2_POSIX_COMPONENT FALSE )
You can’t perform that action at this time.
0 commit comments