PACKAGES are not exported with cmake <= 2.8.10 therefore always create lib/cmake directory that install doesn't fail
Recent cmake versions (starting with 3.0) don't use multiarch libdir when the install prefix is not /usr. To have the same library directory for all packages explicitly set CMAKE_INSTALL_LIBDIR to lib.