Skip to content

Commit

Permalink
[osx] Add missing -fobjc-arc to compile .mm files in laf-base
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 12, 2024
1 parent 55fff89 commit c8e423d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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})
Expand Down

0 comments on commit c8e423d

Please sign in to comment.