Compatibility with old cmake