Commit 3385660
authored
Update minimum CMake version (#793)
The use of CACHE in the SNMALLOC_STATIC_LIBRARY_PREFIX was not correctly handled by cmake before 3.21.
> The “set(CACHE)” command no longer removes a normal variable of the
same name, if any. See policy “CMP0126”.
Changing the minimum version means that containing projects can do:
```CMake
set(SNMALLOC_STATIC_LIBRARY_PREFIX "my_prefix")
```
Without this, there were weird behaviours that the first compile used "sn_" and then subsequent compiles used "my_prefix".
Thanks to @achamayou for debugging this in CCF. microsoft/CCF#71611 parent 452fcc4 commit 3385660
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments