CMake when using `--warn-uninitialized -Werror=dev` notices that this variable
is being incorrectly referenced when `-Dwith_expat=OFF`:
CMake Error (dev) at cmake/config_checks.cmake:40 (set):
uninitialized variable 'EXPAT_FOUND'
Call Stack (most recent call first):
CMakeLists.txt:197 (include)
Gitlab: #2291
# Library checks
set( HAVE_ANN ${ANN_FOUND} )
-set( HAVE_EXPAT ${EXPAT_FOUND} )
+if(with_expat AND EXPAT_FOUND)
+ set(HAVE_EXPAT 1)
+endif()
set( HAVE_LIBGD ${GD_FOUND} )
set( HAVE_ZLIB ${ZLIB_FOUND} )