commit 09ed67b7226a764769722608d93b163e08b4dcbe
parent e77ead5cc3f2ed1f965f35812308e0286df2227a
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Fri, 25 Feb 2022 21:37:20 +0100
fix OS X architectures variable not cached
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -1,8 +1,7 @@
cmake_minimum_required(VERSION 3.15)
# build a fat binary that runs on both intel and the new Apple M1 chip
-set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
-#set(CMAKE_OSX_ARCHITECTURES "x86_64")
+set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "OS X Architectures")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")