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)