Skip to content

Commit 5eb3baa

Browse files
committed
Use BUILD_SHARED_LIBS=OFF for iOS/tvOS static-only builds
Nod now checks BUILD_SHARED_LIBS to decide whether to build cdylib. Set it to OFF in iOS/tvOS presets where dynamic libraries are not supported.
1 parent 1345539 commit 5eb3baa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CMakePresets.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@
248248
"value": false
249249
},
250250
"Rust_CARGO_TARGET": "aarch64-apple-ios",
251+
"BUILD_SHARED_LIBS": {
252+
"type": "BOOL",
253+
"value": false
254+
},
251255
"IMGUI_USE_FREETYPE": {
252256
"type": "BOOL",
253257
"value": false
@@ -289,6 +293,10 @@
289293
},
290294
"Rust_CARGO_TARGET": "aarch64-apple-tvos",
291295
"Rust_TOOLCHAIN": "nightly",
296+
"BUILD_SHARED_LIBS": {
297+
"type": "BOOL",
298+
"value": false
299+
},
292300
"IMGUI_USE_FREETYPE": {
293301
"type": "BOOL",
294302
"value": false

extern/nod

Submodule nod updated 1 file

0 commit comments

Comments
 (0)