Backport cmake-build for using framework AppKit instead of Carbon on Apple

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40323 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2011-11-30 11:46:14 +00:00
parent d45fdbc3c6
commit 953d97afc0
4 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ endif()
if(APPLE)
target_link_libraries(${_lyx} "-bind_at_load")
target_link_libraries(${_lyx} "-framework Carbon")
target_link_libraries(${_lyx} "-framework AppKit")
endif()
if(MINGW)

View File

@ -39,7 +39,7 @@ if(ASPELL_FOUND)
endif()
if(APPLE)
target_link_libraries(${_lyxclient} "-framework Carbon")
target_link_libraries(${_lyxclient} "-framework AppKit")
endif()
install(TARGETS ${_lyxclient} DESTINATION bin)

View File

@ -75,7 +75,7 @@ target_link_libraries(support ${Lyx_Boost_Libraries} ${QT_QTCORE_LIBRARY} ${ZLIB
lyx_add_gcc_pch(support)
if(APPLE)
target_link_libraries(support "objc" "-framework Appkit" "-framework CoreFoundation")
target_link_libraries(support "objc" "-framework AppKit" "-framework CoreFoundation")
elseif(WIN32)
target_link_libraries(support shlwapi psapi)
endif()

View File

@ -51,7 +51,7 @@ if(WIN32)
endif()
if(APPLE)
target_link_libraries(${_tex2lyx} "-framework Carbon")
target_link_libraries(${_tex2lyx} "-framework AppKit")
endif()
project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)