]> granicus.if.org Git - graphviz/commit
update CMake Cairo discovery to match PangoCairo
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 23 Aug 2020 18:30:08 +0000 (11:30 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 27 Aug 2020 14:24:43 +0000 (07:24 -0700)
commitb4f998c133566ef9cb416c085d1ce49e539bec30
tree4e220be549a7b1d9e867fb21f81e97bf3f24959d
parent3ecf2f6206a486fecdea870b7f29ea539345642a
update CMake Cairo discovery to match PangoCairo

This does the equivalent of the previous commit, to now use pkg-config to
discover Cairo on non-Windows platforms and to suppress the CMake warning:

  CMake Warning (dev) at ...FindPackageHandleStandardArgs.cmake:272 (message):
    The package name passed to `find_package_handle_standard_args` (CAIRO) does
    not match the name of the calling package (Cairo).  This can lead to
    problems in calling code that expects `find_package` result variables
    (e.g., `_FOUND`) to follow a certain pattern.
  Call Stack (most recent call first):
    cmake/FindCairo.cmake:12 (find_package_handle_standard_args)
    CMakeLists.txt:81 (find_package)
  This warning is for project developers.  Use -Wno-dev to suppress it.
cmake/FindCairo.cmake
plugin/pango/CMakeLists.txt