Skip to content

Commit a08cae6

Browse files
authored
fix: minor build fixes (leejet#2)
* cmake : fix C++11 build * gitignore : ignore .cache
1 parent 228e94b commit a08cae6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
build*/
2-
test/
2+
test/
3+
4+
.cache/

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ add_executable(${SD_TARGET} main.cpp stb_image_write.h)
1212
target_link_libraries(${SD_LIB} PUBLIC ggml)
1313
target_link_libraries(${SD_TARGET} ${SD_LIB})
1414

15+
target_compile_features(${SD_LIB} PUBLIC cxx_std_11)
1516
target_compile_features(${SD_TARGET} PUBLIC cxx_std_11)
16-
17-
set(CMAKE_CXX_STANDARD 11)

0 commit comments

Comments
 (0)