From b7c85d1ea6533fff53dd977ad6f531e19d8ff95f Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 10 Dec 2022 16:48:15 +0200 Subject: [PATCH] talk : fix build for MSVC --- examples/talk/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/talk/CMakeLists.txt b/examples/talk/CMakeLists.txt index 187e173..5838ceb 100644 --- a/examples/talk/CMakeLists.txt +++ b/examples/talk/CMakeLists.txt @@ -1,7 +1,13 @@ if (WHISPER_SUPPORT_SDL2) # talk set(TARGET talk) - add_executable(${TARGET} talk.cpp gpt-2.cpp) - target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS}) - target_link_libraries(${TARGET} PRIVATE whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) + #add_executable(${TARGET} talk.cpp gpt-2.cpp) + #target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS}) + #target_link_libraries(${TARGET} PRIVATE whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) + + # TODO: this is temporary + # need to export ggml symbols for MSVC, but too lazy .. + add_executable(${TARGET} talk.cpp gpt-2.cpp ../../ggml.c ../../whisper.cpp) + target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../) + target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) endif ()