Skip to content

Commit e70834c

Browse files
more explicit cmake command
1 parent 90cf085 commit e70834c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Modules/@babylonjs/react-native/postinstall.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ const os = require("os");
22

33
function iosCMake() {
44
const { spawn } = require('child_process');
5-
6-
const cmake = spawn('npx', [
7-
'cmake',
8-
'-S', 'ios',
9-
'-B', 'Build/iOS',
10-
'-G', 'Xcode',
5+
const cmake = spawn(
6+
"npx",
7+
[
8+
9+
'./node_modules/cmake-runtime/bin/cmake',
10+
'-S',
11+
'ios',
12+
'-B',
13+
'Build/iOS',
14+
'-G',
15+
'Xcode',
1116
'-DFETCHCONTENT_FULLY_DISCONNECTED=ON',
1217
'-DBABYLON_NATIVE_BUILD_APPS=OFF',
1318
'-DBABYLON_NATIVE_PLUGIN_TESTUTILS=OFF',

0 commit comments

Comments
 (0)