[LMP] Fixed compatibility with CMake < 2.8.9.