Skip to content

Commit 0c1c107

Browse files
committed
Do not link with AppKit and Cocoa, we only need CoreFoundation and Carbon.
1 parent 20962d5 commit 0c1c107

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ if(NOT CARBON_FRAMEWORK)
1111
message(FATAL_ERROR "Carbon not found")
1212
endif()
1313

14-
find_library(APPKIT_FRAMEWORK AppKit)
15-
find_library(COCOA_FRAMEWORK Cocoa)
14+
find_library(COREFOUNDATION_FRAMEWORK CoreFoundation)
1615

1716
configure_file(
1817
"${PROJECT_SOURCE_DIR}/issw_config.h.in"
@@ -40,10 +39,10 @@ set(APP_SOURCES
4039
)
4140

4241
add_library(InputSourceSwitcher ${LIB_SOURCES} ${LIB_HEADERS})
43-
target_link_libraries(InputSourceSwitcher ${APPKIT_FRAMEWORK} ${CARBON_FRAMEWORK} ${COCOA_FRAMEWORK})
42+
target_link_libraries(InputSourceSwitcher ${COREFOUNDATION_FRAMEWORK} ${CARBON_FRAMEWORK})
4443

4544
add_executable(issw ${APP_SOURCES} ${APP_HEADERS} ${LIB_HEADERS})
46-
target_link_libraries(issw InputSourceSwitcher ${APPKIT_FRAMEWORK} ${CARBON_FRAMEWORK} ${COCOA_FRAMEWORK})
45+
target_link_libraries(issw InputSourceSwitcher)
4746

4847
add_executable(testvim test.c)
4948
target_link_libraries(testvim InputSourceSwitcher)

0 commit comments

Comments
 (0)