summaryrefslogtreecommitdiff
path: root/examples/quantize-stats
diff options
context:
space:
mode:
authorcebtenzzre <cebtenzzre@gmail.com>2023-11-02 02:50:16 -0400
committerGitHub <noreply@github.com>2023-11-02 08:50:16 +0200
commitb12fa0d1c13596869c512f49a526b979c94787cc (patch)
tree663ddc7bd68e32f219127839e0155a4acca21c53 /examples/quantize-stats
parent4d719a6d4e74b9a98e75f826f865f3153717d54b (diff)
build : link against build info instead of compiling against it (#3879)
* cmake : fix build when .git does not exist * cmake : simplify BUILD_INFO target * cmake : add missing dependencies on BUILD_INFO * build : link against build info instead of compiling against it * zig : make build info a .cpp source instead of a header Co-authored-by: Matheus C. França <matheus-catarino@hotmail.com> * cmake : revert change to CMP0115 --------- Co-authored-by: Matheus C. França <matheus-catarino@hotmail.com>
Diffstat (limited to 'examples/quantize-stats')
-rw-r--r--examples/quantize-stats/CMakeLists.txt2
-rw-r--r--examples/quantize-stats/quantize-stats.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/quantize-stats/CMakeLists.txt b/examples/quantize-stats/CMakeLists.txt
index db182e26..e31cf5e3 100644
--- a/examples/quantize-stats/CMakeLists.txt
+++ b/examples/quantize-stats/CMakeLists.txt
@@ -1,6 +1,6 @@
set(TARGET quantize-stats)
add_executable(${TARGET} quantize-stats.cpp)
install(TARGETS ${TARGET} RUNTIME)
-target_link_libraries(${TARGET} PRIVATE llama ${CMAKE_THREAD_LIBS_INIT})
+target_link_libraries(${TARGET} PRIVATE llama build_info ${CMAKE_THREAD_LIBS_INIT})
target_include_directories(${TARGET} PRIVATE ../../common)
target_compile_features(${TARGET} PRIVATE cxx_std_11)
diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp
index dd76b1ce..27128247 100644
--- a/examples/quantize-stats/quantize-stats.cpp
+++ b/examples/quantize-stats/quantize-stats.cpp
@@ -1,5 +1,4 @@
#define LLAMA_API_INTERNAL
-#include "build-info.h"
#include "common.h"
#include "ggml.h"
#include "llama.h"