Skip to content

Commit d347aed

Browse files
committed
fix_absolute_install
1 parent 07d286b commit d347aed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ggml/src/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ if (NOT MSVC)
1313
add_compile_options(-fsanitize=thread)
1414
link_libraries (-fsanitize=thread)
1515
endif()
16-
1716
if (GGML_SANITIZE_ADDRESS)
1817
add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
1918
link_libraries (-fsanitize=address)
@@ -239,13 +238,13 @@ function(ggml_add_backend_library backend)
239238
if (GGML_BACKEND_DIR)
240239
install(TARGETS ${backend}
241240
EXPORT ggml-targets
242-
LIBRARY DESTINATION ${GGML_BACKEND_DIR}
241+
LIBRARY DESTINATION ${GGML_BACKEND_LIBDIR}
243242
RUNTIME DESTINATION ${GGML_BACKEND_DIR})
244243
else()
245244
install(TARGETS ${backend}
246245
EXPORT ggml-targets
247-
LIBRARY DESTINATION ${CMAKE_BINARY_DIR}
248-
RUNTIME DESTINATION ${CMAKE_BINARY_DIR})
246+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
247+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
249248
endif()
250249
else()
251250
add_library(${backend} ${ARGN})

0 commit comments

Comments
 (0)