Skip to content

Commit

Permalink
CMakeLists: use -fobjc-arc only with clangs
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 6, 2024
1 parent 4e9eeea commit 4bd90a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ if(WIN32)
endif()
endif()
elseif(APPLE)
target_compile_options(clip PRIVATE -fobjc-arc)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(clip PRIVATE -fobjc-arc)
endif()

find_library(COCOA_LIBRARY Cocoa)
if(COCOA_LIBRARY)
Expand Down

0 comments on commit 4bd90a5

Please sign in to comment.