From: Georgi Gerganov Date: Mon, 27 Mar 2023 18:28:00 +0000 (+0300) Subject: talk-llama : try to fix windows build .. X-Git-Tag: upstream/1.7.4~1534 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7cd1d3bc345eadb2bbac8ffbfbbece3a0be43088;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp talk-llama : try to fix windows build .. --- diff --git a/examples/talk-llama/CMakeLists.txt b/examples/talk-llama/CMakeLists.txt index 4c52378e..f25d0688 100644 --- a/examples/talk-llama/CMakeLists.txt +++ b/examples/talk-llama/CMakeLists.txt @@ -1,10 +1,16 @@ if (WHISPER_SUPPORT_SDL2) # talk-llama set(TARGET talk-llama) + #add_executable(${TARGET} talk-llama.cpp llama.cpp) + #target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS}) + #target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) - add_executable(${TARGET} talk-llama.cpp llama.cpp) + # TODO: this is temporary + # need to export ggml symbols for MSVC, but too lazy .. + add_executable(${TARGET} talk-llama.cpp llama.cpp ../common.cpp ../common-sdl.cpp ../../ggml.c ../../whisper.cpp) - include(DefaultTargetOptions) + target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../) + target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) - target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) + include(DefaultTargetOptions) endif ()