Commit b865cb0
authored
build: port set_utils and dependency_utils from oiio cmake scripts (#1845)
For those who didn't see this get added in OIIO land a few months
back, the highlights are:
* set_utils.cmake -- variable setting utilities, including
replacements/wrappers for set(CACHE) and option() that have a few
extra bells and whistles, including that they allow environment
variables of the same name to override the default values.
* dependency_utils.cmake -- moved the prior contents of
checked_find_package.cmake here, added more features, including...
* An end-of-config dependency report that prints which dependencies
were found and their versions, which were found but were too old,
which were missing.
* The skeleton of an automatic local dependency build facility. The
short story is that if a dependency is not found or is too old AND
it can find a file called src/cmake/build_PACKAGE.cmake, it will run
that file and expect it to download and build the dependency on the
fly. I haven't added any of those scripts here yet, but on the OIIO
side we already have a few to build certain critical dependencies.
Future PRs to OSL will also add the missing pieces to build the
dependencies.
Signed-off-by: Larry Gritz <lg@larrygritz.com>1 parent 64000b4 commit b865cb0
File tree
5 files changed
+783
-220
lines changed- src/cmake
5 files changed
+783
-220
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
42 | 64 | | |
43 | 65 | | |
44 | 66 | | |
| |||
60 | 82 | | |
61 | 83 | | |
62 | 84 | | |
| 85 | + | |
63 | 86 | | |
64 | 87 | | |
65 | 88 | | |
| |||
70 | 93 | | |
71 | 94 | | |
72 | 95 | | |
73 | | - | |
74 | 96 | | |
75 | 97 | | |
76 | 98 | | |
| |||
158 | 180 | | |
159 | 181 | | |
160 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
161 | 186 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
170 | 190 | | |
171 | 191 | | |
172 | 192 | | |
173 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
174 | 197 | | |
175 | 198 | | |
176 | 199 | | |
| 200 | + | |
177 | 201 | | |
178 | 202 | | |
179 | 203 | | |
| |||
311 | 335 | | |
312 | 336 | | |
313 | 337 | | |
| 338 | + | |
| 339 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
0 commit comments