From e5ddf28f02c9bc506c2f02b4528ddfee837c27fc Mon Sep 17 00:00:00 2001 From: Stefan Date: Mon, 8 Aug 2022 11:31:24 +0200 Subject: [PATCH] fix(tests): fix building tests --- tests/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 72173384..be972431 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,8 +2,14 @@ cmake_minimum_required(VERSION 3.5) project(TestStatusQ LANGUAGES CXX) +# The current StatusQ builds with Qt 5.14 which doesn't support the apple silicon. +# Therefore force the intel architecture for MacOS platforms. +set(CMAKE_OSX_ARCHITECTURES "x86_64") + enable_testing() +set(CMAKE_AUTOMOC ON) + # TODO: Workaround until we make StatusQ a CMake library list(APPEND QML_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/../src/") set(QML_IMPORT_PATH "${QML_DIRS}" CACHE STRING "Qt Creator extra qml import paths")