CMake when using `--warn-uninitialized -Werror=dev` notices that this variable
is being incorrectly referenced when `-Dwith_expat=OFF`:
CMake Error (dev) at lib/common/CMakeLists.txt:111
(target_include_directories):
uninitialized variable 'EXPAT_INCLUDE_DIRS'
Gitlab: #2291
../xdot
)
-target_include_directories(common_obj SYSTEM PRIVATE
- ${EXPAT_INCLUDE_DIRS}
-)
+if(EXPAT_FOUND)
+ target_include_directories(common_obj SYSTEM PRIVATE
+ ${EXPAT_INCLUDE_DIRS}
+ )
+endif()
if(WIN32)
target_include_directories(common_obj