From c8e423dad60faf301118b5b7f26777cf5f7db0e9 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 12 Apr 2024 15:58:41 -0300 Subject: [PATCH] [osx] Add missing -fobjc-arc to compile .mm files in laf-base --- base/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/CMakeLists.txt b/base/CMakeLists.txt index e948e7371..e347b710b 100644 --- a/base/CMakeLists.txt +++ b/base/CMakeLists.txt @@ -1,5 +1,5 @@ # LAF Base Library -# Copyright (c) 2019-2023 Igara Studio S.A. +# Copyright (c) 2019-2024 Igara Studio S.A. # Copyright (c) 2001-2018 David Capello include(CheckIncludeFiles) @@ -94,6 +94,8 @@ if(WIN32) target_link_libraries(laf-base dbghelp shlwapi version) else() if(APPLE) + target_compile_options(laf-base PRIVATE -fobjc-arc) + find_library(FOUNDATION_LIBRARY Foundation) target_compile_definitions(laf-base PUBLIC LAF_MACOS) target_link_libraries(laf-base ${FOUNDATION_LIBRARY})