Skip to content
Permalink
Browse files

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

OpenCL quote paths
  • Loading branch information
elpaso committed Jun 24, 2020
2 parents 4961ccc + ec52aa9 commit 2553d459cfe9238ba65b355511974142c2f610c5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsopenclutils.cpp
@@ -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() );
}
}

0 comments on commit 2553d45

Please sign in to comment.
You can’t perform that action at this time.