From af83056a4f7192ff3c9b4536d617010af26ed4d3 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Wed, 26 Apr 2023 19:59:37 -0700 Subject: [PATCH] put chat.exe in 'bin' folder of build tree because this is also in llama.cpp's CMakeLists: https://github.com/ggerganov/llama.cpp/blob/master/CMakeLists.txt#L11 this is where libllama.dll winds up, causing attempts to run the chat UI from Qt Creator on Windows to fail due to not finding libllama.dll - I've been working around this by copying libllama.dll *out* of bin/ but have been bitten a few times by forgetting to keep doing that and the build getting out of sync. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7f589ba..22064072 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,8 @@ message(STATUS "Qt 6 root directory: ${Qt6_ROOT_DIR}") add_subdirectory(llmodel) +set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) + qt_add_executable(chat main.cpp download.h download.cpp