We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e116f59 commit 591f515Copy full SHA for 591f515
examples/server/CMakeLists.txt
@@ -34,6 +34,14 @@ endforeach()
34
add_executable(${TARGET} ${TARGET_SRCS})
35
install(TARGETS ${TARGET} RUNTIME)
36
37
+# clean up generated files in pre-build step
38
+foreach(asset ${PUBLIC_ASSETS})
39
+ set(output "${CMAKE_CURRENT_BINARY_DIR}/${asset}.hpp")
40
+ add_custom_command(TARGET ${TARGET} PRE_BUILD
41
+ COMMAND "${CMAKE_COMMAND}" -E remove -f "${output}"
42
+ )
43
+endforeach()
44
+
45
target_link_libraries(${TARGET} PRIVATE common ${CMAKE_THREAD_LIBS_INIT})
46
47
if (LLAMA_SERVER_SSL)
0 commit comments