forked from qt-creator/qt-creator
Cmake fix warning
QTextStream: No device Change-Id: I059f163d82bea0719b9781d0e20c691606047326 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -737,10 +737,12 @@ void CMakeProject::updateApplicationAndDeploymentTargets()
|
|||||||
QString absoluteSourcePath = sourceDir.absolutePath();
|
QString absoluteSourcePath = sourceDir.absolutePath();
|
||||||
if (!absoluteSourcePath.endsWith(QLatin1Char('/')))
|
if (!absoluteSourcePath.endsWith(QLatin1Char('/')))
|
||||||
absoluteSourcePath.append(QLatin1Char('/'));
|
absoluteSourcePath.append(QLatin1Char('/'));
|
||||||
|
if (deploymentStream.device()) {
|
||||||
while (!deploymentStream.atEnd()) {
|
while (!deploymentStream.atEnd()) {
|
||||||
QStringList file = deploymentStream.readLine().split(QLatin1Char(':'));
|
QStringList file = deploymentStream.readLine().split(QLatin1Char(':'));
|
||||||
deploymentData.addFile(absoluteSourcePath + file.at(0), deploymentPrefix + file.at(1));
|
deploymentData.addFile(absoluteSourcePath + file.at(0), deploymentPrefix + file.at(1));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
t->setApplicationTargets(appTargetList);
|
t->setApplicationTargets(appTargetList);
|
||||||
t->setDeploymentData(deploymentData);
|
t->setDeploymentData(deploymentData);
|
||||||
|
Reference in New Issue
Block a user