Skip to content

Commit

Permalink
fix: iOS cocoa build
Browse files Browse the repository at this point in the history
  • Loading branch information
pminev authored and iboB committed Oct 29, 2024
1 parent 6e4cf74 commit a050640
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/jalog/sinks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ elseif(APPLE)
NSLogSink.mm
)
find_library(COCOA Cocoa)
target_link_libraries(jalog-sinklib PRIVATE ${COCOA})
if(COCOA)
# On iOS Cocoa does not exist as a separate framework
# so just ignore it
target_link_libraries(jalog-sinklib PRIVATE ${COCOA})
endif()
endif()

target_include_directories(jalog-sinklib INTERFACE ../..)
Expand Down

0 comments on commit a050640

Please sign in to comment.