WIP: working fmt dep

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel 2025-02-18 14:02:35 -05:00
parent 7483a83597
commit bae82824fb
4 changed files with 6 additions and 1 deletions

1
deps/CMakeLists.txt vendored
View File

@ -1,6 +1,7 @@
set(BUILD_SHARED_LIBS OFF) set(BUILD_SHARED_LIBS OFF)
set(FMT_INSTALL OFF) set(FMT_INSTALL OFF)
set(FMT_MODULE ON)
add_subdirectory(fmt) add_subdirectory(fmt)
add_subdirectory(json) add_subdirectory(json)

View File

@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.29) cmake_minimum_required(VERSION 3.29)
project(gpt4all-backend VERSION 0.1 LANGUAGES CXX) 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) include(../common/common.cmake)
find_package(Qt6 6.8 COMPONENTS Core REQUIRED) find_package(Qt6 6.8 COMPONENTS Core REQUIRED)

View File

@ -1,5 +1,5 @@
add_library(ollama-hpp INTERFACE) 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" "${CMAKE_CURRENT_SOURCE_DIR}/ollama-hpp/include"
) )
target_link_libraries(ollama-hpp INTERFACE target_link_libraries(ollama-hpp INTERFACE

View File

@ -8,8 +8,11 @@ module;
module gpt4all.backend.main; module gpt4all.backend.main;
import fmt;
std::string LLMProvider::qstringToSTL(const QString &s) std::string LLMProvider::qstringToSTL(const QString &s)
{ {
fmt::format("{}", "foo");
return s.toStdString(); return s.toStdString();
} }