Skip to content

Commit 7cd1d3b

Browse files
committed
talk-llama : try to fix windows build ..
1 parent 82637b8 commit 7cd1d3b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

examples/talk-llama/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
if (WHISPER_SUPPORT_SDL2)
22
# talk-llama
33
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})
47

5-
add_executable(${TARGET} talk-llama.cpp llama.cpp)
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)
611

7-
include(DefaultTargetOptions)
12+
target_include_directories(${TARGET} PRIVATE ${SDL2_INCLUDE_DIRS} ../../)
13+
target_link_libraries(${TARGET} PRIVATE ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
814

9-
target_link_libraries(${TARGET} PRIVATE common common-sdl whisper ${SDL2_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
15+
include(DefaultTargetOptions)
1016
endif ()

0 commit comments

Comments
 (0)