fix: minor build fixes (#2)

* cmake : fix C++11 build

* gitignore : ignore .cache
This commit is contained in:
Georgi Gerganov 2023-08-14 03:12:04 +03:00 committed by GitHub
parent 228e94b924
commit a08cae6d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
build*/
test/
test/
.cache/

View File

@ -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)