Guard Linux speech runtime dependency closure and relocatable lookup
This commit is contained in:
1 parent
210f2b0136
commit
e71cace91f
5 files changed
+80
-1
No files matched your search
@@ -33,6 +33,12 @@ else()
|
||||
set(GGML_METAL OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
endif()
|
||||
if(UNIX AND NOT APPLE AND NOT SEARCHI_INTERNAL_CPU)
|
||||
# The staged worker and every dynamic backend live together. RUNPATH is
|
||||
# non-transitive, so each shared target needs its own relocatable lookup.
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN")
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
|
||||
endif()
|
||||
add_subdirectory("${WHISPER_SOURCE}" whisper)
|
||||
target_compile_features(whisper PRIVATE cxx_std_17)
|
||||
add_executable(searchi-speech-worker worker.cpp)
|
||||
@@ -44,6 +50,8 @@ endif()
|
||||
if(MSVC)
|
||||
target_compile_options(searchi-speech-worker PRIVATE /utf-8)
|
||||
endif()
|
||||
if(UNIX)
|
||||
if(APPLE)
|
||||
set_target_properties(searchi-speech-worker PROPERTIES BUILD_RPATH "$ORIGIN;@loader_path" INSTALL_RPATH "$ORIGIN;@loader_path")
|
||||
elseif(UNIX)
|
||||
set_target_properties(searchi-speech-worker PROPERTIES BUILD_RPATH "$ORIGIN" INSTALL_RPATH "$ORIGIN")
|
||||
endif()
|
||||
Reference in new issue
Block a user