Merge pull request #37376 from elpaso/bugfix-gh37297-opencl-paths

OpenCL quote paths
This commit is contained in:
Alessandro Pasotti 2020-06-24 16:08:02 +02:00 committed by GitHub
commit 2553d459cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -657,13 +657,13 @@ cl::Program QgsOpenClUtils::buildProgram( const QString &source, QgsOpenClUtils:
float version( QgsOpenClUtils::activePlatformVersion().toFloat( &ok ) );
if ( ok && version < 2.0f )
{
program.build( QStringLiteral( "-cl-std=CL%1 -I%2" )
program.build( QStringLiteral( "-cl-std=CL%1 -I\"%2\"" )
.arg( QgsOpenClUtils::activePlatformVersion( ) )
.arg( sourcePath() ).toStdString().c_str() );
}
else
{
program.build( QStringLiteral( "-I%1" )
program.build( QStringLiteral( "-I\"%1\"" )
.arg( sourcePath() ).toStdString().c_str() );
}
}