From 44d2d1e94da3a25c6c02a2b945d95ce0bbe2acea Mon Sep 17 00:00:00 2001 From: Theodore Watson Date: Fri, 1 Jan 2021 12:32:46 -0800 Subject: [PATCH] bugfix for min osx sdk being set incorrectly for glfw / cmake --- apothecary/formulas/glfw.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apothecary/formulas/glfw.sh b/apothecary/formulas/glfw.sh index e1081d676..6a8d0348a 100644 --- a/apothecary/formulas/glfw.sh +++ b/apothecary/formulas/glfw.sh @@ -64,7 +64,8 @@ function build() { -DGLFW_BUILD_EXAMPLES=OFF \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_C_FLAGS="-arch arm64 -arch x86_64 -mmacosx-version-min=${OSX_MIN_SDK_VER}" \ + -DCMAKE_OSX_DEPLOYMENT_TARGET=${OSX_MIN_SDK_VER} \ + -DCMAKE_C_FLAGS="-arch arm64 -arch x86_64" \ $EXTRA_CONFIG else cmake .. -DGLFW_BUILD_DOCS=OFF \