Commit 434ac4c
committed
Make config files be found case-insensitively
By using the <lowercasePackageName>-config.cmake and
<lowercasePackageName>-config-version.cmake naming schemes for the
generated CMake config files, we make it possible for these config files
to be found, irrespective of the capitalization used in the original
find_package call. That is, find_package(NaMe) and find_package(name)
will both find the same config file.
This is already the case no case-insensitive filesystems (e.g. under
Windows). However, on case-sensitive filesystems (e.g. most Linux
setups) the used capitalization makes a difference. This can be a source
of confusion and annoyance in cross-platform development.
With this commit, this platform differences will vanish.1 parent 7753711 commit 434ac4c
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | | - | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
178 | | - | |
| 178 | + | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
0 commit comments