Skip to content

FindGTest: Create the gmock targets only when GTest has been found

When we introduced the GTest::gmock and GTest::gmock_main targets in !6632 (merged) 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.

Backport: release
Topic-rename: FindGTest-gmock-needs-gtest

Edited by Brad King

Merge request reports

Loading