cmake defaults the install directory to /usr/local on UNIX. - https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX.html This results is the x265.pc file located in /usr/local/lib/pkgconfig instead of /usr/lib/pkgconfig and not being found when pkg-config is called.