@@ -3,16 +3,16 @@ exec_prefix=${prefix}
3
3
libdir=@libdir@
4
4
includedir=${exec_prefix}/include
5
5
6
- Name: $<TARGET_PROPERTY:pc_NAME>
7
- Description: $<TARGET_PROPERTY:pc_DESCRIPTION>
8
- Version: $<TARGET_PROPERTY:pc_VERSION>
6
+ Name: $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_NAME>
7
+ Description: $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_DESCRIPTION>
8
+ Version: $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_VERSION>
9
9
10
10
%define $<is-empty: $<STREQUAL:@empty@,
11
11
%define $<<not-empty: $<NOT:$<is-empty:
12
12
13
13
#~ "Requires" dependencies:
14
14
%define requires_joiner @newline@~ Requires: ~@space@
15
- %define requires_prop $<TARGET_PROPERTY:pc_REQUIRES>
15
+ %define requires_prop $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_REQUIRES>
16
16
#~ Conditional: Only expand a first "\nRequires: " if Requires is non-empty:
17
17
%define has_requires $<<not-empty:requires_prop>>
18
18
~$<has_requires:requires_joiner>
@@ -22,36 +22,36 @@ Version: $<TARGET_PROPERTY:pc_VERSION>
22
22
~@newline@~
23
23
24
24
#~ Link options:
25
- Libs: -L${libdir} -l$<TARGET_PROPERTY:OUTPUT_NAME> ~@space@~
25
+ Libs: -L${libdir} -l$<TARGET_PROPERTY:@GENERATE_TARGET@, OUTPUT_NAME> ~@space@~
26
26
#~ Join each "Libs" item with spaces. This could be more robust, but it suites our purposes:
27
- %define libs_prop $<TARGET_PROPERTY:pc_LIBS>
27
+ %define libs_prop $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_LIBS>
28
28
#~ Remove duplicate items, which will usually be redundant link paths:
29
29
%define libs $<REMOVE_DUPLICATES:libs_prop>
30
30
$<JOIN:libs,@space@>~
31
31
32
32
#~ Add link options. Don't remove duplicates, because they may be important
33
- %define link_opts $<TARGET_PROPERTY:INTERFACE_LINK_OPTIONS>
33
+ %define link_opts $<TARGET_PROPERTY:@GENERATE_TARGET@, INTERFACE_LINK_OPTIONS>
34
34
$<$<<not-empty:link_opts>>:@space@$<JOIN:link_opts,@space@>>
35
35
36
36
~@newline@~
37
37
38
38
#~ Compile-flags:
39
- %define cflags_prop $<TARGET_PROPERTY:pc_CFLAGS>
39
+ %define cflags_prop $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_CFLAGS>
40
40
Cflags: $<JOIN:cflags_prop,@space@> ~@space@~
41
41
42
42
#~ Options:
43
- %define opts_prop $<TARGET_PROPERTY:INTERFACE_COMPILE_OPTIONS>
43
+ %define opts_prop $<TARGET_PROPERTY:@GENERATE_TARGET@, INTERFACE_COMPILE_OPTIONS>
44
44
%define opts $<REMOVE_DUPLICATES:opts_prop>
45
45
$<JOIN:opts,@space@>~
46
46
47
47
#~ Preprocessor definitions:
48
- %define defs_prop $<TARGET_PROPERTY:INTERFACE_COMPILE_DEFINITIONS>
48
+ %define defs_prop $<TARGET_PROPERTY:@GENERATE_TARGET@, INTERFACE_COMPILE_DEFINITIONS>
49
49
%define defs $<REMOVE_DUPLICATES:defs_prop>
50
50
$<$<<not-empty:defs>>: -D>~
51
51
$<JOIN:defs, -D>~
52
52
53
53
#~ Inclusions:
54
- %define inc_prop $<TARGET_PROPERTY:pc_INCLUDE_DIRECTORIES>
54
+ %define inc_prop $<TARGET_PROPERTY:@GENERATE_TARGET@, pc_INCLUDE_DIRECTORIES>
55
55
%define incs $<REMOVE_DUPLICATES:inc_prop>
56
56
#~ Absolute path includes are kept absolute:
57
57
%define abs_includes $<FILTER:incs,INCLUDE,^/>
0 commit comments