]> granicus.if.org Git - graphviz/commit
CMake: Similar to 3fcf0968, use gdlib.pc if available smattr/d853834a-1c51-4437-988c-b92e1587fc31
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Mon, 2 Jan 2023 14:04:33 +0000 (14:04 +0000)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 8 Jan 2023 19:43:44 +0000 (11:43 -0800)
commitdfaba26f60bb5bf1afa61a558919007f5ec50eb3
tree33685c914dd315ec1debfed70acf9cd2f08a8b97
parent00344efdc84a90ce6a864697acd6833a9f193cf7
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