CMake/Tests/FindGDAL/Test/main.c
2018-11-01 13:16:37 -04:00

12 lines
274 B
C

#include <gdal.h>
#include <stdio.h>
#include <string.h>
int main()
{
printf("Found GDAL version %s, expected version %s\n", GDAL_RELEASE_NAME,
CMAKE_EXPECTED_GDAL_VERSION);
GDALAllRegister();
return strcmp(GDAL_RELEASE_NAME, CMAKE_EXPECTED_GDAL_VERSION);
}