summaryrefslogtreecommitdiff
path: root/llama.cpp/tools/imatrix/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/tools/imatrix/CMakeLists.txt')
-rw-r--r--llama.cpp/tools/imatrix/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/llama.cpp/tools/imatrix/CMakeLists.txt b/llama.cpp/tools/imatrix/CMakeLists.txt
new file mode 100644
index 0000000..5af6263
--- /dev/null
+++ b/llama.cpp/tools/imatrix/CMakeLists.txt
@@ -0,0 +1,13 @@
+set(TARGET llama-imatrix)
+add_executable(${TARGET} imatrix.cpp)
+target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
+target_compile_features(${TARGET} PRIVATE cxx_std_17)
+
+if(LLAMA_TOOLS_INSTALL)
+ install(TARGETS ${TARGET} RUNTIME)
+endif()
+
+if (CMAKE_SYSTEM_NAME MATCHES "AIX")
+ # AIX's flock() function comes from libbsd.a
+ target_link_libraries(${TARGET} PRIVATE -lbsd)
+endif()