Fix building x86_64 solution on Mac M1

This commit is contained in:
MishkaRogachev 2022-07-21 15:55:54 +03:00 committed by osmaczko
parent 132cfda244
commit 442ffb9feb
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.19)
project(StatusQ) 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_AUTOMOC ON)
set(CMAKE_AUTORCC ON) set(CMAKE_AUTORCC ON)