From 3678a6a4369728a3dd6744a34f4976af72c426ab Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 13 Aug 2023 21:36:44 +0300 Subject: [PATCH 1/2] cmake : fix C++11 build --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6962e9b35..3557b8c53 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 From 9753f6867b98d2fa42e3e28807fdcbe3927dea11 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 13 Aug 2023 21:37:16 +0300 Subject: [PATCH 2/2] gitignore : ignore .cache --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1a0f9116c..db0a93f48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ build*/ -test/ \ No newline at end of file +test/ + +.cache/