summaryrefslogtreecommitdiff
path: root/indra/cmake/Hunspell.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/Hunspell.cmake')
-rw-r--r--indra/cmake/Hunspell.cmake16
1 files changed, 6 insertions, 10 deletions
diff --git a/indra/cmake/Hunspell.cmake b/indra/cmake/Hunspell.cmake
index 81702cbd77..258a27b5de 100644
--- a/indra/cmake/Hunspell.cmake
+++ b/indra/cmake/Hunspell.cmake
@@ -1,20 +1,16 @@
# -*- cmake -*-
include(Prebuilt)
-if( TARGET hunspell::hunspell )
- return()
-endif()
-create_target( hunspell::hunspell )
+include_guard()
+create_target( ll::hunspell )
use_prebuilt_binary(libhunspell)
if (WINDOWS)
- set_target_libraries( hunspell::hunspell libhunspell)
+ set_target_libraries( ll::hunspell libhunspell)
elseif(DARWIN)
- set_target_libraries( hunspell::hunspell hunspell-1.3)
+ set_target_libraries( ll::hunspell hunspell-1.3)
elseif(LINUX)
- set_target_libraries( hunspell::hunspell hunspell-1.3)
-else()
- message(FATAL_ERROR "Invalid platform")
+ set_target_libraries( ll::hunspell hunspell-1.3)
endif()
-set_target_include_dirs( hunspell::hunspell ${LIBS_PREBUILT_DIR}/include/hunspell)
+set_target_include_dirs( ll::hunspell ${LIBS_PREBUILT_DIR}/include/hunspell)
use_prebuilt_binary(dictionaries)