Commit e35529c
committed
Identify the basic issues with ExtProject_Target
Three remaining issues surfaced with the RPATH setting - two minor, one
trickier.
Minor #1 - Itcl and Itk didn't have the RPATH flag set in their target
definitions (fixed).
Minor #2 - 3rd party binaries RPATHs don't match those produced by the
main CMake build - using bin instead of lib (investigating).
More significant is the behavior of CMake's RPATH_CHANGE - it is
correctly setting the final path, but it is not clearing the build dir
path. So far I've not found a way to make the available commands in
CMake do the job, so I'm falling back on a solution similar to that
necessary on Apple and using the chrpath utility. The code in this
commit works if a system chrpath is present - we'll need to bundle a
version in misc/tools to make sure we have the capabilities we need
reliably. (chrpath is GPL, so we can't install it or use it as anything
except a build tool - unfortunately I've not found a BSD/MIT licensed
tool for this type of rpath work...)1 parent ba45fa6 commit e35529c
File tree
3 files changed
+13
-1
lines changed- src/other/ext
- CMake
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
276 | 286 | | |
277 | 287 | | |
278 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
0 commit comments