ggerganov commited on
Commit
b0b6987
·
unverified ·
1 Parent(s): 6a5f440

talk-llama : try to fix windows build ..

Browse files
Files changed (1) hide show
  1. examples/talk-llama/CMakeLists.txt +9 -3
examples/talk-llama/CMakeLists.txt CHANGED
@@ -1,10 +1,16 @@
1
  if (WHISPER_SUPPORT_SDL2)
2
  # talk-llama
3
  set(TARGET talk-llama)
 
 
 
4
 
5
- add_executable(${TARGET} talk-llama.cpp llama.cpp)
 
 
6
 
7
- include(DefaultTargetOptions)
 
8
 
9
- target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
10
  endif ()
 
1
  if (WHISPER_SUPPORT_SDL2)
2
  # talk-llama
3
  set(TARGET talk-llama)
4
+ #add_executable(${TARGET} talk-llama.cpp llama.cpp)
5
+ #target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS})
6
+ #target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
7
 
8
+ # TODO: this is temporary
9
+ # need to export ggml symbols for MSVC, but too lazy ..
10
+ add_executable(${TARGET} talk-llama.cpp llama.cpp ../common.cpp ../common-sdl.cpp ../../ggml.c ../../whisper.cpp)
11
 
12
+ target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
13
+ target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
14
 
15
+ include(DefaultTargetOptions)
16
  endif ()