CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
358 stars 83 forks source link

Make the project compatible with OSX 10.13 #368

Closed joseph-kaile closed 1 year ago

joseph-kaile commented 1 year ago

Fixes #367

Sets the CMAKE_OSX_DEPLOYMENT_TARGET variable to 10.13, which is similar to how Unreal does it:

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15

The build command now looks like:

cmake -B /Users/josephkaile/dev-base/cesium-unity-samples/Packages/com.cesium.unity/native~/build-Standalone-x86_64 -S /Users/josephkaile/dev-base/cesium-unity-samples/Packages/com.cesium.unity/native~ -DEDITOR=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="/Users/josephkaile/dev-base/cesium-unity-samples/Packages/com.cesium.unity/Plugins/Standalone/x86_64" -DREINTEROP_GENERATED_DIRECTORY=generated-Standalone -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13

cmake -B /Users/josephkaile/dev-base/cesium-unity-samples/Packages/com.cesium.unity/native~/build-Standalone-arm64 -S /Users/josephkaile/dev-base/cesium-unity-samples/Packages/com.cesium.unity/native~ -DEDITOR=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="/Users/josephkaile/dev-base/cesium-unity-samples/Packages/com.cesium.unity/Plugins/Standalone/arm64" -DREINTEROP_GENERATED_DIRECTORY=generated-Standalone -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
kring commented 1 year ago

Thanks @joseph-kaile!