Skip to content

Commit 675208d

Browse files
committed
chore: update to c++17
1 parent d7f430c commit 675208d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ add_subdirectory(thirdparty)
142142

143143
target_link_libraries(${SD_LIB} PUBLIC ggml zip)
144144
target_include_directories(${SD_LIB} PUBLIC . thirdparty)
145-
target_compile_features(${SD_LIB} PUBLIC cxx_std_11)
145+
target_compile_features(${SD_LIB} PUBLIC c_std_11 cxx_std_17)
146146

147147

148148
if (SD_BUILD_EXAMPLES)

examples/cli/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ set(TARGET sd)
33
add_executable(${TARGET} main.cpp)
44
install(TARGETS ${TARGET} RUNTIME)
55
target_link_libraries(${TARGET} PRIVATE stable-diffusion ${CMAKE_THREAD_LIBS_INIT})
6-
target_compile_features(${TARGET} PUBLIC cxx_std_11)
6+
target_compile_features(${TARGET} PUBLIC c_std_11 cxx_std_17)

0 commit comments

Comments
 (0)