We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d4dea commit 52158fbCopy full SHA for 52158fb
src/crssync/main.cpp
@@ -40,6 +40,12 @@ int main( int argc, char ** argv )
40
{
41
QgsApplication a( argc, argv, false );
42
43
+ if ( !QgsApplication::isRunningFromBuildDir() )
44
+ {
45
+ char* prefixPath = getenv( "QGIS_PREFIX_PATH" );
46
+ QgsApplication::setPrefixPath( prefixPath ? prefixPath : CMAKE_INSTALL_PREFIX, TRUE );
47
+ }
48
+
49
std::cout << "Synchronizing CRS database with PROJ definitions." << std::endl;
50
51
CPLPushErrorHandler( showError );
0 commit comments