shithub: ft²

Download patch

ref: 5d7e3174535a73fe124e0ac32054ba47cf27f628
parent: 6c8e39b0a28b7617df5bf434c363b27254b68a3c
author: CuriouslyCurious <thecuriouslycurious@protonmail.com>
date: Thu Jul 24 09:10:16 EDT 2025

Fix CMake for musl-based libc systems

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,11 @@
         target_compile_definitions(ft2-clone
             PRIVATE __MACOSX_CORE__)
     else()
+        # musl systems need musl-fts installed, others have it with glibc
+        find_library(FTS fts)
+        if (FTS)
+            target_link_libraries(ft2-clone PRIVATE fts)
+        endif()
         target_link_libraries(ft2-clone
             PRIVATE asound)
         target_compile_definitions(ft2-clone
--