Skip to content

Commit

Permalink
Force weak linking of NaturalLanguage framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 9, 2023
1 parent 68e0b6f commit cf59ca8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ if ((APPLE OR WIN32 OR use_enchant) AND NOT DESKTOP_APP_USE_HUNSPELL_ONLY)
set(system_spellchecker 1)
endif()

if (APPLE)
target_link_frameworks_weak(lib_spellcheck
PUBLIC
NaturalLanguage # Since macOS 10.14 only.
)
endif()

set(use_cld3 0)
if (LINUX OR DESKTOP_APP_USE_CLD3)
set(use_cld3 1)
Expand Down

0 comments on commit cf59ca8

Please sign in to comment.