Skip to content

Commit 6091c5b

Browse files
authored
Make sure cxxModuleCMakeListsPath is treated as relative path (#2344)
1 parent 557632f commit 6091c5b

File tree

1 file changed

+4
-1
lines changed
  • packages/cli-platform-android/src/config

1 file changed

+4
-1
lines changed

packages/cli-platform-android/src/config/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ export function dependencyConfig(
169169
const cxxModuleCMakeListsModuleName =
170170
userConfig.cxxModuleCMakeListsModuleName || null;
171171
const cxxModuleHeaderName = userConfig.cxxModuleHeaderName || null;
172-
let cxxModuleCMakeListsPath = userConfig.cxxModuleCMakeListsPath || null;
172+
let cxxModuleCMakeListsPath = userConfig.cxxModuleCMakeListsPath
173+
? path.join(sourceDir, userConfig.cxxModuleCMakeListsPath)
174+
: null;
175+
173176
if (process.platform === 'win32') {
174177
cmakeListsPath = cmakeListsPath.replace(/\\/g, '/');
175178
if (cxxModuleCMakeListsPath) {

0 commit comments

Comments
 (0)