summaryrefslogtreecommitdiff
path: root/indra/cmake/Hunspell.cmake
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-09-03 20:30:12 +0300
committerGitHub <noreply@github.com>2025-09-03 20:30:12 +0300
commit90aa693f2a9ece9f1c624dba245f202e126bca5b (patch)
treefae8bca7bb3f3ac05972803e2fefc05de8542408 /indra/cmake/Hunspell.cmake
parent5593cde0e85d4d4b06efacffb6f00ed2fadb188a (diff)
parent5ffcd3dc88892a651fe9a95974280efb85e18a8b (diff)
Merge Changes for support of apple silicon on macOS
Mac Arm
Diffstat (limited to 'indra/cmake/Hunspell.cmake')
-rw-r--r--indra/cmake/Hunspell.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/cmake/Hunspell.cmake b/indra/cmake/Hunspell.cmake
index 129679febd..b063363bc0 100644
--- a/indra/cmake/Hunspell.cmake
+++ b/indra/cmake/Hunspell.cmake
@@ -8,17 +8,17 @@ use_prebuilt_binary(dictionaries)
add_library( ll::hunspell INTERFACE IMPORTED )
use_system_binary(hunspell)
use_prebuilt_binary(libhunspell)
+
if (WINDOWS)
target_compile_definitions( ll::hunspell INTERFACE HUNSPELL_STATIC=1)
- target_link_libraries( ll::hunspell INTERFACE
- debug ${ARCH_PREBUILT_DIRS_DEBUG}/libhunspell.lib
- optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libhunspell.lib
- )
-elseif(DARWIN)
- target_link_libraries( ll::hunspell INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/libhunspell-1.7.a
- )
-elseif(LINUX)
- target_link_libraries( ll::hunspell INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/libhunspell-1.7.a
- )
endif()
+
+find_library(HUNSPELL_LIBRARY
+ NAMES
+ libhunspell.lib
+ libhunspell-1.7.a
+ PATHS "${ARCH_PREBUILT_DIRS_RELEASE}" REQUIRED NO_DEFAULT_PATH)
+
+target_link_libraries(ll::hunspell INTERFACE ${HUNSPELL_LIBRARY})
+
target_include_directories( ll::hunspell SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/hunspell)