From b27c1b240e45ceb02f8587e72b650bbeededf546 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 17 Oct 2014 13:55:05 +0200 Subject: Add Carbon and Cocoa dependencies to vncviewer We use both frameworks directly from vncviewer so we should make sure they get pulled in. --- vncviewer/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vncviewer') diff --git a/vncviewer/CMakeLists.txt b/vncviewer/CMakeLists.txt index c6e778f1..de9da8fb 100644 --- a/vncviewer/CMakeLists.txt +++ b/vncviewer/CMakeLists.txt @@ -48,6 +48,10 @@ endif() target_link_libraries(vncviewer rfb network rdr os Xregion ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES}) +if(APPLE) + target_link_libraries(vncviewer "-framework Cocoa" "-framework Carbon") +endif() + install(TARGETS vncviewer DESTINATION ${BIN_DIR}) if(UNIX) install(FILES vncviewer.man DESTINATION ${MAN_DIR}/man1 RENAME vncviewer.1) -- cgit v1.2.3