set minimum cmake version to 3.0
Set cmake policy 42 for macos