mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
Ladybird/AppKit/CMake: Use a more civilized way of finding Cocoa
Finding Cocoa.framework is the linker's job, not CMake's. No behavior change.
This commit is contained in:
parent
d324517ed7
commit
398f34bb81
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/398f34bb81 Pull-request: https://github.com/SerenityOS/serenity/pull/22772
1 changed files with 1 additions and 3 deletions
|
@ -99,8 +99,6 @@ if (ENABLE_QT)
|
|||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Network)
|
||||
elseif (APPLE)
|
||||
find_library(COCOA_LIBRARY Cocoa)
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
|
@ -151,7 +149,7 @@ elseif (APPLE)
|
|||
AppKit/Utilities/Conversions.mm
|
||||
)
|
||||
target_include_directories(ladybird PRIVATE AppKit)
|
||||
target_link_libraries(ladybird PRIVATE ${COCOA_LIBRARY} LibUnicode)
|
||||
target_link_libraries(ladybird PRIVATE "-framework Cocoa" LibUnicode)
|
||||
target_compile_options(ladybird PRIVATE
|
||||
-fobjc-arc
|
||||
-Wno-deprecated-anon-enum-enum-conversion # Required for CGImageCreate
|
||||
|
|
Loading…
Reference in a new issue