Fix building x86_64 solution on Mac M1

This commit is contained in:
MishkaRogachev 2022-07-21 15:55:54 +03:00 committed by Michał Cieślak
parent 2d92be0bfa
commit 3941afe4f5
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.19)
project(StatusQ)
if (APPLE)
set(MACOS_VERSION_MIN_FLAGS -mmacosx-version-min=10.14)
set(CMAKE_OSX_ARCHITECTURES "x86_64")
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)