Commit a604977
authored
Correctness (#24)
* Make CMake 3.14 a minimum requirement
Requiring CMake 3.14 as a minimum guarantees some features that will
make the code simpler.
* Install namelink only in dev component
* Populate INTERFACE_INCLUDE_DIRECTORIES
INCLUDES DESTINATION is a special form that adds the listed directories
to the targets in the same install(TARGETS) command call at install
time.
This is preferable to the $<INSTALL_INTERFACE:...> generator
expression.
* Assign every install rule to a component
* Make component names unique
If every project assigns themselves to the same components, then it
becomes impossible to tell individual packages apart.
See Craig Scott's presentation on this bit:
https://youtu.be/m0DwB4OvDXk?t=2168
* Use a cache variable for CMake package location
Making the location of the CMake package config files configurable
allows package managers and distro package maintainers to trivially
redirect their location to another location.
* Add the ARCH_INDEPENDENT parameter
This option is useful for header only libraries that do not depend on
architecture specifics.
The parameter defaults to YES to disable target platform architecture
check for package resolution.
* Simplify the package config file
The file never used or provided package components, so it is pointless
to use configure_package_config_file.
Co-authored-by: friendlyanon <friendlyanon@users.noreply.github.com>1 parent 27f4ead commit a604977
3 files changed
Lines changed: 54 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
59 | 77 | | |
60 | 78 | | |
61 | 79 | | |
62 | 80 | | |
63 | 81 | | |
64 | | - | |
| 82 | + | |
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
68 | 86 | | |
69 | 87 | | |
70 | 88 | | |
71 | | - | |
| 89 | + | |
| 90 | + | |
72 | 91 | | |
73 | | - | |
| 92 | + | |
74 | 93 | | |
75 | | - | |
| 94 | + | |
76 | 95 | | |
77 | | - | |
78 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
79 | 100 | | |
80 | 101 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
84 | 112 | | |
85 | 113 | | |
86 | 114 | | |
87 | 115 | | |
88 | | - | |
| 116 | + | |
89 | 117 | | |
| 118 | + | |
90 | 119 | | |
91 | 120 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
95 | 126 | | |
96 | 127 | | |
97 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
98 | 133 | | |
99 | 134 | | |
100 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments