From e5324c1dee6b9571e0e237de7dbc75a6cd1144c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thireus=20=E2=98=A0?= Date: Thu, 18 May 2023 18:10:41 +0100 Subject: [PATCH] -lrt required for some versions of ld Some versions of ld are causing the following issue: undefined reference to `clock_gettime' https://stackoverflow.com/questions/2418157/c-error-undefined-reference-to-clock-gettime-and-clock-settime Can be replicated with "conda install -c conda-forge gxx_linux-64", which uses "GNU ld (GNU Binutils) 2.39". --- models/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/models/CMakeLists.txt b/models/CMakeLists.txt index 9c65928..66f746c 100644 --- a/models/CMakeLists.txt +++ b/models/CMakeLists.txt @@ -1,2 +1,3 @@ +link_libraries("-lrt") add_executable(quantize quantize.cpp) target_link_libraries(quantize PRIVATE bert ggml)