Utilities for cmake.