Updated the support for cmake.