]> granicus.if.org Git - graphviz/commit
CMake: Similar to 3fcf0968, use gdlib.pc if available
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Mon, 2 Jan 2023 14:04:33 +0000 (14:04 +0000)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 23 Jan 2023 16:12:44 +0000 (08:12 -0800)
commit7db8e665cced464c15dfb4bd449d75e0dbce6ac9
treedb451b6ee6066160aac2ba235921d9065a7c596e
parent2db4b0529e2f87da0d00efa56b8c1e18f0ee614b
CMake: Similar to 3fcf0968, use gdlib.pc if available

The gdlib-config program is no longer installed with the newer versions
of the library as it is deprecated. The CMake build on CI for Fedora
prints the following, which is no longer the case with this patch:

   CMake Warning at cmake/FindGD.cmake:63 (message):
     gdlib-config not found; skipping feature checks
   Call Stack (most recent call first):
     contrib/diffimg/CMakeLists.txt:1 (find_package)

xref: https://github.com/libgd/libgd/issues/376#issuecomment-276138975

Edits from Matthew Fernandez:
 - Wrap CMake line
 - Adjust #1786 work arounds

Gitlab: #1786
ci/tests.py
cmake/FindGD.cmake