Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #5490 again
  • Loading branch information
jef-n committed Jun 23, 2012
1 parent 10d4dea commit 52158fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/crssync/main.cpp
Expand Up @@ -40,6 +40,12 @@ int main( int argc, char ** argv )
{
QgsApplication a( argc, argv, false );

if ( !QgsApplication::isRunningFromBuildDir() )
{
char* prefixPath = getenv( "QGIS_PREFIX_PATH" );
QgsApplication::setPrefixPath( prefixPath ? prefixPath : CMAKE_INSTALL_PREFIX, TRUE );
}

std::cout << "Synchronizing CRS database with PROJ definitions." << std::endl;

CPLPushErrorHandler( showError );
Expand Down

0 comments on commit 52158fb

Please sign in to comment.