From c75eb2bba2811137dcc8f2bf80eb852c792f8757 Mon Sep 17 00:00:00 2001 From: Acurisu Date: Thu, 3 Feb 2022 08:48:15 +0100 Subject: [PATCH] force x86-64 on MacOS --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c87b62f..864eccd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ # Require at least CMake version 3.14.5 or later for FetchContent cmake_minimum_required(VERSION 3.14.5) +# Force x86-64 on MacOS (for Apple Silicon) +if(APPLE) + set(CMAKE_OSX_ARCHITECTURES "x86_64") +endif() + # Define the VTIL project project(VTIL-Core)