Only check property if GMOCK_LIBRARY is a target