commit | 1aa95e1a3b0f29ca35554b1bb003f714c315e047 | [log] [tgz] |
---|---|---|
author | Robert Maynard <rmaynard@nvidia.com> | Fri Jul 29 11:34:32 2022 -0400 |
committer | Brad King <brad.king@kitware.com> | Fri Jul 29 14:05:55 2022 -0400 |
tree | 9de07c84aca90e0b6f8f5d2f05988a504a6ffa13 | |
parent | d566bd962df5b1bf0ec5d16e9e7affe592b8b3eb [diff] |
FindGTest: Create the gmock targets only when GTest has been found When we introduced the `GTest::gmock` and `GTest::gmock_main` targets in commit 50bf457a0d (FindGTest: Add target for gmock library, 2021-10-17, v3.23.0-rc1~321^2) we failed to handle the case where GTest isn't found. Don't construct gmock targets that depend on non-existent gtest targets when gtest failed to be found.