mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 23:59:02 +01:00
6335933a5b
Fix bug in httlib.h for mingw, please see https://github.com/yhirose/cpp-httplib/issues/1669
13 lines
375 B
CMake
13 lines
375 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})
|
|
|
|
# Check if the compiler is MinGW
|
|
if(MINGW)
|
|
# Link the necessary libraries for SSL and Winsock
|
|
target_link_libraries(${TARGET} PRIVATE -lcrypt32 -lssl -lcrypto -lws2_32)
|
|
endif()
|