Keep -lgtest in LIBS when testing for gmock and gtest_main. This may help
under some circumstances.