Commit e0cf649
committed
🐛 Fix path calculations for
Problem:
- Users of the function may pass in qualified path names for inputs; it's not
correct to simply prepend the current source directory.
Solution:
- Use `file(REAL_PATH ...)` to calculate the path, which will properly handle
either a qualified path or a path relative to the current source directory.
Note:
- CMake is limited in `list(TRANSFORM ...)` to fixed functions, hence this must
be done with a regular `foreach`.gen_str_catalog
1 parent e7dc333 commit e0cf649
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
41 | 50 | | |
42 | 51 | | |
43 | 52 | | |
| |||
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
62 | | - | |
| 71 | + | |
63 | 72 | | |
64 | | - | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | | - | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
0 commit comments