Merge pull request #28 from TheBloke/macOS_Universal

Add support for building a Universal binary on macOS
This commit is contained in:
AT 2023-04-14 14:06:47 -04:00 committed by GitHub
commit aa836fa6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.16)
if(APPLE)
# Build a Universal binary on macOS
# This requires that the found Qt library is compiled as Universal binaries.
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
project(gpt4all VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)