cmake: Use search-specific-dirs-then-system-dirs idiom
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.
Showing
Please
register
or
sign in
to comment