• Harris Hancock's avatar
    cmake: Use search-specific-dirs-then-system-dirs idiom · df0fbbe3
    Harris Hancock authored
    An inconsistency was introduced with the previous fix to allow Cap'n Proto
    installations in system directories to be found by CapnProtoTargets.cmake:
    if the user installed Cap'n Proto in two locations, one of which is a
    system directory, e.g. /usr and /somewhere/else, and set
    PKG_CONFIG_PATH=/somewhere/else/lib/pkgconfig, the dependent project
    would use headers from /somewhere/else/include, but libraries from /usr/lib.
    
    This change resolves the inconsistency, allowing PKG_CONFIG_PATH to solely
    control the location of the desired installation of Cap'n Proto.
    df0fbbe3
CapnProtoTargets.cmake 9.03 KB