OpenSceneGraph/CMakeModules/FindRSVG.cmake
Scott Giese 89450b7e11 Improve PkgConfig usage
Including FindPkgConfig directly into scripts is not a recommended practice.
Doing so will cause CMake to complain with a warning.
Replaced with find_package(PkgConfig QUIET)
2020-03-22 17:46:50 -05:00

15 lines
333 B
CMake

#use pkg-config to find various modues
find_package(PkgConfig QUIET)
IF(PKG_CONFIG_FOUND)
#Version 2.35 introduces the rsvg_cleanup function which is used
PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.35)
PKG_CHECK_MODULES(CAIRO cairo)
IF (RSVG_FOUND AND NOT CAIRO_FOUND)
SET(RSVG_FOUND FALSE)
ENDIF()
ENDIF()