cmake: add empty glob result check