Skip to content

Commit 6afce6a

Browse files
committed
build: disable soname to reduce binary size
1 parent 824565a commit 6afce6a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ function(llama_cpp_python_install_target target)
4141
INSTALL_RPATH "$ORIGIN"
4242
BUILD_WITH_INSTALL_RPATH TRUE
4343
)
44+
set_target_properties(${target} PROPERTIES
45+
NO_SONAME TRUE
46+
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
47+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
48+
)
4449
endif()
4550
endif()
4651
endfunction()

0 commit comments

Comments
 (0)