1
0
Fork 0

Removed adding Hunspell subdirectory if it is not used.

This commit is contained in:
23rd 2020-02-24 18:47:54 +03:00
parent bc8d01a1cc
commit 6dd044ae16
2 changed files with 11 additions and 1 deletions

View file

@ -12,7 +12,9 @@ endif()
add_subdirectory(expected) add_subdirectory(expected)
add_subdirectory(ffmpeg) add_subdirectory(ffmpeg)
add_subdirectory(gsl) add_subdirectory(gsl)
add_subdirectory(hunspell) if (add_hunspell_library)
add_subdirectory(hunspell)
endif()
add_subdirectory(iconv) add_subdirectory(iconv)
add_subdirectory(lz4) add_subdirectory(lz4)
add_subdirectory(openal) add_subdirectory(openal)

View file

@ -45,6 +45,14 @@ if (DESKTOP_APP_SPECIAL_TARGET STREQUAL ""
set(disable_autoupdate 1) set(disable_autoupdate 1)
endif() 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_osx 0)
set(build_macstore 0) set(build_macstore 0)
set(build_winstore 0) set(build_winstore 0)