The upstream code in the tarball for version 3.5.1 (https://cmake.org/files/v3.5/cmake-3.5.1.tar.gz) looks as follows:
foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR) _pkgconfig_set("${_pkg_check_prefix}_${variable}" "${${_pkg_check_prefix}_${variable}}") endforeach () The fix was introduced upstream in https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6f4f9054 and is mentioned in the last comment in this ticket: https://public.kitware.com/Bug/view.php?id=15903 Maybe this should be updated to use 3.5.1 which seems to have fixed that problem already? ** Bug watch added: public.kitware.com/Bug/ #15903 http://public.kitware.com/Bug/view.php?id=15903 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1563548 Title: CMake 3.5's pkg-config support broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1563548/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs