Look for the shared library suffix of the platform
The search for the shared collocatordb and rocksdb was restricted to .so, which
is what MacOS does not use. cmake knows the suffix of the platform, .so on
Linux and .dylib on MacOS.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: If87d1c648c800e9b70d86ee4afbd436cd7b0fa2d
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c6377a2..32e1d1e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@
find_library(ROCKSDB librocksdb.a)
else ()
set(_dereko2vec_lib_suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES})
- set(CMAKE_FIND_LIBRARY_SUFFIXES ".so")
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_SHARED_LIBRARY_SUFFIX})
find_library(COLLOCATORDB NAMES collocatordb)
find_library(ROCKSDB NAMES rocksdb)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_dereko2vec_lib_suffixes})