Commit 19d4b2e
Clemens Vasters
fix(c): exclude cJSON from install targets
- Use FetchContent_Populate + add_subdirectory with EXCLUDE_FROM_ALL
instead of FetchContent_MakeAvailable to prevent cJSON's install()
commands from running during 'cmake --install'
- Change cJSON linkage from PUBLIC to PRIVATE since it's statically
linked into the shared library
- Set ENABLE_TARGET_EXPORT OFF and ENABLE_CJSON_UNINSTALL OFF to further
prevent cJSON from adding install targets
- Set ENABLE_CUSTOM_COMPILER_FLAGS OFF to prevent cJSON's strict compiler
flags from conflicting with our project's flags
- Remove non-existent ENABLE_CJSON_INSTALL option
This fixes the release job failure where cJSON was trying to install
to /usr/local which requires elevated permissions on GitHub Actions runners.1 parent 409ad00 commit 19d4b2e
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
84 | 96 | | |
85 | 97 | | |
86 | 98 | | |
| |||
129 | 141 | | |
130 | 142 | | |
131 | 143 | | |
| 144 | + | |
| 145 | + | |
132 | 146 | | |
133 | | - | |
| 147 | + | |
134 | 148 | | |
135 | 149 | | |
136 | 150 | | |
| |||
0 commit comments