Closed joseph-kaile closed 1 year ago
Fixes #367
Sets the CMAKE_OSX_DEPLOYMENT_TARGET variable to 10.13, which is similar to how Unreal does it:
CMAKE_OSX_DEPLOYMENT_TARGET
10.13
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
Thanks @joseph-kaile!
Fixes #367
Sets the
CMAKE_OSX_DEPLOYMENT_TARGET
variable to10.13
, which is similar to how Unreal does it:The build command now looks like: