Commit 064d466
committed
tests: fix leading whitespace in linker flags
Building a project as ExternalProject in Tarantool is failed
because initial LDFLAGS is empty and after adding an option
a final value has a leading whitespace, but should not [1]:
CMake Error at tests/capi/CMakeLists.txt:69 (add_executable):
Target "ffi_cdef_proto_test" links to item " -g" which has leading or
trailing whitespace. This is now an error according to policy CMP0004.
Call Stack (most recent call first):
tests/capi/ffi_cdef_proto/CMakeLists.txt:16 (create_test)
The patch add a macro `AppendFlags` that allow to avoid such
issues.
1. https://cmake.org/cmake/help/latest/policy/CMP0004.html1 parent 13d8962 commit 064d466
2 files changed
+23
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | | - | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
35 | | - | |
| 44 | + | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
39 | | - | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
43 | | - | |
| 52 | + | |
44 | 53 | | |
45 | 54 | | |
46 | 55 | | |
| |||
0 commit comments