Skip to content
Snippets Groups Projects
Commit ac00b68d authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: change dummy code in cmake to test if gdal has ogr

parent 62c58757
No related branches found
No related tags found
No related merge requests found
#ifdef WIN32
#define CPL_DISABLE_DLL
#endif
#include "ogrsf_frmts.h"
#include "ogr_api.h"
int main(int argc,char * argv[])
{
OGRSFDriverRegistrar::Open(argv[1], FALSE);
// OGRSFDriverRegistrar::Open(argv[1], FALSE);
// return 0;
OGRDataSourceH hDS;
OGRSFDriverH *pahDriver;
OGRRegisterAll();
hDS = OGROpen(argv[1], FALSE, pahDriver );
if( hDS == NULL )
{
return -1;
}
OGRReleaseDataSource( hDS );
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment