Merge pull request #1 from CKegel/CMake_Patch

Build TextEdit with the darwin linker
This commit is contained in:
Ariel Abreu 2023-10-21 21:47:58 -04:00 committed by GitHub
commit 99ec72a94d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,4 +31,7 @@ add_darling_executable(TextEdit
FontNameTransformer.m
PrintingTextView.m
)
set_target_properties(TextEdit PROPERTIES LINK_FLAGS "-Wl,-sectorder,__TEXT,__text,${CMAKE_CURRENT_SOURCE_DIR}/TextEdit.scatterload -Wl,-e,start" C_STANDARD 11)
target_link_libraries(TextEdit AppKit)
set_property(TARGET TextEdit APPEND_STRING PROPERTY LINK_FLAGS "-Wl,-sectorder -Wl,__TEXT -Wl,__text -Wl,${CMAKE_CURRENT_SOURCE_DIR}/TextEdit.scatterload")
set_property(TARGET TextEdit PROPERTY C_STANDARD 11)