mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-25 08:09:20 +01:00
f5f159c320
* make : fix server example building on MSYS2 environments (Windows)
It was not working since commit eff3570f78
when server was introduced.
* cmake : simplify server example lib deps on Windows
server uses httplib::Server, not httplib::SSLServer, so there is no need
to mention cryptographic libraries in target_link_libraries.
Winsock (ws2_32) suffices here.
Also use plain library names like we use in other places.
11 lines
261 B
CMake
11 lines
261 B
CMake
set(TARGET server)
|
|
add_executable(${TARGET} server.cpp httplib.h json.hpp)
|
|
|
|
include(DefaultTargetOptions)
|
|
|
|
target_link_libraries(${TARGET} PRIVATE common whisper ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
if (WIN32)
|
|
target_link_libraries(${TARGET} PRIVATE ws2_32)
|
|
endif()
|