Skip to content

Commit 52158fb

Browse files
committed
fix #5490 again
1 parent 10d4dea commit 52158fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/crssync/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ int main( int argc, char ** argv )
4040
{
4141
QgsApplication a( argc, argv, false );
4242

43+
if ( !QgsApplication::isRunningFromBuildDir() )
44+
{
45+
char* prefixPath = getenv( "QGIS_PREFIX_PATH" );
46+
QgsApplication::setPrefixPath( prefixPath ? prefixPath : CMAKE_INSTALL_PREFIX, TRUE );
47+
}
48+
4349
std::cout << "Synchronizing CRS database with PROJ definitions." << std::endl;
4450

4551
CPLPushErrorHandler( showError );

0 commit comments

Comments
 (0)