Compiling Test GDAL_VERSION - Failed

Hello everyone,

I’m new to OTB and trying to build it using CMake (version 3.14.6). But receiving the below error

.
Tried a few things found on OTB git lab but no luck. Appreciate if anyone could help me out here! Thanks

I’ve met the same problem when i build OTB from source, I solved the problem by adding
···
-DGDAL_CONFIG_CHECKING=OFF
···
options when i start the cmake.
I wish it helps.

Haijun-Wei