forked from qt-creator/qt-creator
Docker: Map build directory to device in cmake calls
Change-Id: Ibcd2e1aebac337e880a28a2a22b35d8ca60b6dcf Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -140,11 +140,12 @@ MakeInstallCommand CMakeProject::makeInstallCommand(const Target *target,
|
||||
config << "--config" << bc->cmakeBuildType();
|
||||
}
|
||||
|
||||
QString buildDirectory = ".";
|
||||
FilePath buildDirectory = ".";
|
||||
if (bc)
|
||||
buildDirectory = bc->buildDirectory().toString();
|
||||
buildDirectory = bc->buildDirectory();
|
||||
|
||||
cmd.arguments << "--build" << buildDirectory << "--target" << installTarget << config;
|
||||
cmd.arguments << "--build" << buildDirectory.onDevice(cmd.command).mapToDevicePath()
|
||||
<< "--target" << installTarget << config;
|
||||
|
||||
cmd.environment.set("DESTDIR", QDir::toNativeSeparators(installRoot));
|
||||
return cmd;
|
||||
|
||||
Reference in New Issue
Block a user