Call `find_package()` conditionally.

If a top-level project has called `add_directory(abseil-cpp)` already (possibly
indirectly), let that take precedence over any copy of Abseil that might have
been installed on the system. And likewise for ICU, GoogleTest and Benchmark.

Fixes #427.

Change-Id: I1902f6fc04df49d029357734116e08ee4a565836
Reviewed-on: https://code-review.googlesource.com/c/re2/+/61350
Reviewed-by: Paul Wankadia <junyer@google.com>
Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
1 file changed