From d0ebdc8607d1ce870d037e9f356a72f0e225bb45 Mon Sep 17 00:00:00 2001 From: Pawel Paruzel Date: Sun, 5 Dec 2021 13:21:17 +0100 Subject: [PATCH] Let CMake autodetect Apple arch on M1 processor --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c10e3ccb5..6f1df2905 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,11 +25,6 @@ if (NOT CMAKE_VERSION VERSION_LESS 3.9) cmake_policy(SET CMP0068 NEW) endif() -# add some default value for some additional macOS variable -# note that those variables are ignored on other systems -if(NOT CMAKE_OSX_ARCHITECTURES) - set(CMAKE_OSX_ARCHITECTURES "x86_64" CACHE STRING "macOS architecture to build; 64-bit is expected" FORCE) -endif() if(NOT CMAKE_OSX_SYSROOT) # query the path to the default SDK, will fail on non-macOS, but it's okay. execute_process(COMMAND xcodebuild -sdk macosx -version Path