Commit b70b4ce
committed
cmake: preserve CMAKE_REQUIRED_DEFINITIONS on BSD
The BSD block used set() to assign CMAKE_REQUIRED_DEFINITIONS,
which would silently discard any value already in that variable.
Switch to list(APPEND) so the BSD flag is accumulated rather than
replacing any pre-existing content.
Similarly, use list(APPEND) inside the check_symbol_exists block
when prepending the build flags, so the BSD definition set just
above is included in the probe compilations rather than overwritten.
Signed-off-by: Dan Nechita <dan.nechita@analog.com>1 parent 72844ac commit b70b4ce
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
0 commit comments