Commit 94b9d84
Liam Merino
Fix install path duplication when source root contains regex metacharacters
draco_install.cmake stripped ${draco_src_root} from header paths via
list(TRANSFORM ... REPLACE), whose pattern is a regex. When
${draco_src_root} contained a regex metacharacter (e.g. '+' or '.'),
the strip silently failed and install(FILES) re-prepended the prefix,
producing a doubled path that broke `cmake --install`.
Replace with per-element file(RELATIVE_PATH ...), the path-aware API.
Available since CMake 3.0; no minimum-version bump.
Fixes #1132.1 parent 77e616e commit 94b9d84
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments