Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
OpenCL quote paths
Try to fix #37297

(cherry picked from commit ec52aa9)
  • Loading branch information
elpaso authored and nyalldawson committed Jul 21, 2020
1 parent 7ebb3f5 commit a169a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsopenclutils.cpp
Expand Up @@ -656,13 +656,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() );
}
}
Expand Down

0 comments on commit a169a35

Please sign in to comment.