The expat library is already optional. This option allows the user to
explictly not use it even if they have it.
This will be used in an upcoming commit to add a minimal CMake build
job to CI which will test that it is possible to build Graphviz
without any of the optional libraries.
libraries: lib/cgraph++ and lib/gvc++. It is experimental, meaning
that it might have breaking changes also in upcoming patch or minor
releases (towards #2001)
+- CMake builds now support an `with_expat` option that allows the support for
+ using HTML-like labels through the optional expat library to be explicitly
+ enabled (default) or disabled
### Changed
# =============================== Build options ================================
option(enable_ltdl "Support on-demand plugin loading" ON)
+option(with_expat "Support HTML-like labels through expat" ON )
option(with_digcola "DIGCOLA features in neato layout engine" ON )
option(with_ipsepcola "IPSEPCOLA features in neato layout engine (disabled by default - C++ portability issues)." OFF )
option(with_ortho "ORTHO features in neato layout engine." ON )
find_package(ANN)
find_package(Cairo)
-find_package(EXPAT)
+
+if(with_expat)
+ find_package(EXPAT)
+endif()
+
find_package(GD)
if(enable_ltdl)