]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
talk : fix build for MSVC
authorGeorgi Gerganov <redacted>
Sat, 10 Dec 2022 14:48:15 +0000 (16:48 +0200)
committerGeorgi Gerganov <redacted>
Sat, 10 Dec 2022 14:51:58 +0000 (16:51 +0200)
examples/talk/CMakeLists.txt

index 187e1736958a1a43d21d2920df710120052c2e7f..5838ceb5ff260062c27542ecf52fe96d2a4a6758 100644 (file)
@@ -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 ()