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:
Nikita Baryshnikov
2014-06-28 17:23:42 +04:00
parent 93b53a4bb3
commit 24d82a86ab

View File

@@ -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);