Look for the shared library suffix of the platform
Only reached on platforms other than MacOS, which has its own branch, but the
hard coded .so has no business there either.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Change-Id: Ie092e28542768d1da90312cc0d9900b2f64fc7d2
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e435ea2..771e90e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,7 +42,7 @@
# headers that are found belong to it, i.e. that there is no leftover
# rocksdb installation below /usr/local.
set(_collocatordb_lib_suffixes ${CMAKE_FIND_LIBRARY_SUFFIXES})
- set(CMAKE_FIND_LIBRARY_SUFFIXES ".so")
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_SHARED_LIBRARY_SUFFIX})
find_library(ROCKSDB NAMES rocksdb)
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_collocatordb_lib_suffixes})
endif()