]> granicus.if.org Git - graphviz/commit
CMake: avoid referencing 'EXPAT_FOUND' when 'with_expat' is not set
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Nov 2022 21:05:01 +0000 (14:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Nov 2022 04:52:51 +0000 (20:52 -0800)
commit78cff44f5cb106d904198a62a881ab51bf11a61f
treee2f81cb0fe075a588dc58553d6ff0a0d33a0e5d1
parentd0cfb684b7b5fa876c0226d5beed14da39a7ce75
CMake: avoid referencing 'EXPAT_FOUND' when 'with_expat' is not set

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
cmake/config_checks.cmake