From a08cae6d9581c7fdfaecabd9e9e4cadd0f266b52 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 14 Aug 2023 03:12:04 +0300 Subject: [PATCH] fix: minor build fixes (#2) * cmake : fix C++11 build * gitignore : ignore .cache --- .gitignore | 4 +++- CMakeLists.txt | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1a0f911..db0a93f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ build*/ -test/ \ No newline at end of file +test/ + +.cache/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 6962e9b..3557b8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,5 @@ add_executable(${SD_TARGET} main.cpp stb_image_write.h) target_link_libraries(${SD_LIB} PUBLIC ggml) target_link_libraries(${SD_TARGET} ${SD_LIB}) +target_compile_features(${SD_LIB} PUBLIC cxx_std_11) target_compile_features(${SD_TARGET} PUBLIC cxx_std_11) - -set(CMAKE_CXX_STANDARD 11) \ No newline at end of file