Fix for older cmake versions