diff --git a/development/cmake/src/CMakeLists.txt b/development/cmake/src/CMakeLists.txt index fcb5fc3912..90ef06eeaa 100644 --- a/development/cmake/src/CMakeLists.txt +++ b/development/cmake/src/CMakeLists.txt @@ -61,6 +61,11 @@ if(ASPELL_FOUND) target_link_libraries(lyx-${qt_postfix} ${ASPELL_LIBRARY}) endif(ASPELL_FOUND) +if(APPLE) + target_link_libraries(lyx-${qt_postfix} "-bind_at_load" ) + target_link_libraries(lyx-${qt_postfix} "-framework Carbon" ) +endif(APPLE) + project_source_group("${GROUP_CODE}" lyx_sources lyx_headers) diff --git a/development/cmake/src/tex2lyx/CMakeLists.txt b/development/cmake/src/tex2lyx/CMakeLists.txt index d7c5de6d42..1883eb5580 100644 --- a/development/cmake/src/tex2lyx/CMakeLists.txt +++ b/development/cmake/src/tex2lyx/CMakeLists.txt @@ -67,5 +67,9 @@ if(WIN32) target_link_libraries(tex2lyx shlwapi) endif(WIN32) +if(APPLE) + target_link_libraries(tex2lyx "-framework Carbon") +endif(APPLE) + project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)