From 9b48b4867b8a9d82940794bffbfc80f5c87c036f Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Thu, 4 Nov 2021 23:06:13 +0000 Subject: [PATCH] Adjust CMakeLists to compile for M1 and x86 Signed-off-by: Dom Rodriguez --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 86deb4b7..c7770fab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -420,6 +420,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set (BARRIER_BUNDLE_APP_DIR ${BARRIER_BUNDLE_DIR}/Barrier.app) set (BARRIER_BUNDLE_BINARY_DIR ${BARRIER_BUNDLE_APP_DIR}/Contents/MacOS) + set (CMAKE_OSX_ARCHITECTURES "arm64;x86_64") + configure_files (${BARRIER_BUNDLE_SOURCE_DIR} ${BARRIER_BUNDLE_DIR}) add_custom_target(Barrier_MacOS ALL