mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-08 11:27:14 +00:00
WIP: working fmt dep
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
7483a83597
commit
bae82824fb
1
deps/CMakeLists.txt
vendored
1
deps/CMakeLists.txt
vendored
@ -1,6 +1,7 @@
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
set(FMT_INSTALL OFF)
|
||||
set(FMT_MODULE ON)
|
||||
add_subdirectory(fmt)
|
||||
|
||||
add_subdirectory(json)
|
||||
|
@ -1,6 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.29)
|
||||
project(gpt4all-backend VERSION 0.1 LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23) # make sure fmt module is compiled with the same C++ version as us
|
||||
include(../common/common.cmake)
|
||||
|
||||
find_package(Qt6 6.8 COMPONENTS Core REQUIRED)
|
||||
|
@ -1,5 +1,5 @@
|
||||
add_library(ollama-hpp INTERFACE)
|
||||
target_include_directories(ollama-hpp INTERFACE
|
||||
target_include_directories(ollama-hpp SYSTEM INTERFACE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ollama-hpp/include"
|
||||
)
|
||||
target_link_libraries(ollama-hpp INTERFACE
|
||||
|
@ -8,8 +8,11 @@ module;
|
||||
|
||||
module gpt4all.backend.main;
|
||||
|
||||
import fmt;
|
||||
|
||||
|
||||
std::string LLMProvider::qstringToSTL(const QString &s)
|
||||
{
|
||||
fmt::format("{}", "foo");
|
||||
return s.toStdString();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user