summaryrefslogtreecommitdiffstats
path: root/Tests/FindGDAL/Test/main.c
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-10-31 18:48:15 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-01 17:16:37 (GMT)
commit22ba9b6a328a0eea77559b2d607fe8d525445812 (patch)
tree962e8435dcf4486b28ab383e5d6f17d7550cc01d /Tests/FindGDAL/Test/main.c
parent525ff0c3bc1f625756337c2ae724a58ec93ba4d1 (diff)
downloadCMake-22ba9b6a328a0eea77559b2d607fe8d525445812.zip
CMake-22ba9b6a328a0eea77559b2d607fe8d525445812.tar.gz
CMake-22ba9b6a328a0eea77559b2d607fe8d525445812.tar.bz2
FindGDAL: set the GDAL_VERSION
Diffstat (limited to 'Tests/FindGDAL/Test/main.c')
-rw-r--r--Tests/FindGDAL/Test/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/FindGDAL/Test/main.c b/Tests/FindGDAL/Test/main.c
index 046eb99..7b31a13 100644
--- a/Tests/FindGDAL/Test/main.c
+++ b/Tests/FindGDAL/Test/main.c
@@ -1,12 +1,11 @@
#include <gdal.h>
#include <stdio.h>
-// #include <string.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);
- return 0;
+ return strcmp(GDAL_RELEASE_NAME, CMAKE_EXPECTED_GDAL_VERSION);
}