diff --git a/CMakeLists.txt b/CMakeLists.txt index c0e5e15..4040c07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,7 +142,7 @@ add_subdirectory(thirdparty) target_link_libraries(${SD_LIB} PUBLIC ggml zip) target_include_directories(${SD_LIB} PUBLIC . thirdparty) -target_compile_features(${SD_LIB} PUBLIC cxx_std_11) +target_compile_features(${SD_LIB} PUBLIC c_std_11 cxx_std_17) if (SD_BUILD_EXAMPLES) diff --git a/examples/cli/CMakeLists.txt b/examples/cli/CMakeLists.txt index 4861bd3..3f15324 100644 --- a/examples/cli/CMakeLists.txt +++ b/examples/cli/CMakeLists.txt @@ -3,4 +3,4 @@ set(TARGET sd) add_executable(${TARGET} main.cpp) install(TARGETS ${TARGET} RUNTIME) target_link_libraries(${TARGET} PRIVATE stable-diffusion ${CMAKE_THREAD_LIBS_INIT}) -target_compile_features(${TARGET} PUBLIC cxx_std_11) \ No newline at end of file +target_compile_features(${TARGET} PUBLIC c_std_11 cxx_std_17) \ No newline at end of file