Updted for CMake 2.8.12.x