Skip to content

Commit

Permalink
Removed adding Hunspell subdirectory if it is not used.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Feb 24, 2020
1 parent bc8d01a commit 6dd044a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ endif()
add_subdirectory(expected)
add_subdirectory(ffmpeg)
add_subdirectory(gsl)
add_subdirectory(hunspell)
if (add_hunspell_library)
add_subdirectory(hunspell)
endif()
add_subdirectory(iconv)
add_subdirectory(lz4)
add_subdirectory(openal)
Expand Down
8 changes: 8 additions & 0 deletions variables.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ if (DESKTOP_APP_SPECIAL_TARGET STREQUAL ""
set(disable_autoupdate 1)
endif()

set(add_hunspell_library 0)
if ((WIN32
OR (LINUX AND NOT DESKTOP_APP_USE_ENCHANT)
OR DESKTOP_APP_USE_HUNSPELL_ONLY)
AND NOT DESKTOP_APP_DISABLE_SPELLCHECK)
set(add_hunspell_library 1)
endif()

set(build_osx 0)
set(build_macstore 0)
set(build_winstore 0)
Expand Down

0 comments on commit 6dd044a

Please sign in to comment.