[OpenMP][omptest] Fix target dependency on runtimes GTest (#237200)

Linking default_gtest PUBLIC puts it into omptest's link interface, so
install(EXPORT) fails with "requires target runtimes_gtest that is not
in any
export set".

Only GTest's include directories and compile definitions are needed, and
only
while building, so attach those behind BUILD_INTERFACE. Embedding the
GTest
objects is unchanged.

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback đź’¬</a></sub>

Co-authored-by: Michael Halkenhäuser <MichaelGerald.Halkenhauser@amd.com>
GitOrigin-RevId: 1e2e01a95c384ff48b4419eecc82235ff7d42382
1 file changed