mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Merge pull request #37376 from elpaso/bugfix-gh37297-opencl-paths
OpenCL quote paths
This commit is contained in:
commit
2553d459cf
@ -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() );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user