support cmake <= 2.8.2