cmake: Don't force libgmock.a when libgmock.so found.