File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package 'cmake'
22package 'ccache'
33package 'git'
44package 'jq'
5+ package 'libopenblas-dev'
6+ package 'libopenblas-openmp-dev'
7+ package 'libsimde-dev'
58package 'ninja-build', bin: 'ninja'
69package 'pkg-config'
7- package 'libopenblas-dev'
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.31 ...4.12 )
1+ cmake_minimum_required (VERSION 3.28 ...4.12 )
22
33include ("${CMAKE_CURRENT_SOURCE_DIR } /cmake/common/bootstrap.cmake" NO_POLICY_SCOPE )
44
@@ -68,7 +68,6 @@ if(WIN32)
6868elseif (UNIX AND NOT APPLE )
6969 set (BLA_VENDOR OpenBLAS)
7070 find_package (BLAS REQUIRED )
71- target_link_libraries (${CMAKE_PROJECT_NAME } PRIVATE ${BLAS_LIBRARIES} )
7271endif ()
7372
7473include (cmake/BuildWhispercpp.cmake )
Original file line number Diff line number Diff line change @@ -146,6 +146,6 @@ else()
146146 set_target_properties (ct2::ct2 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR} /include)
147147
148148 add_library (ct2 INTERFACE )
149- target_link_libraries (ct2 INTERFACE ct2::ct2 cpu_features )
149+ target_link_libraries (ct2 INTERFACE ct2::ct2 cpu_features ${BLAS_LIBRARIES} )
150150
151151endif ()
Original file line number Diff line number Diff line change @@ -160,3 +160,6 @@ if(APPLE)
160160 target_link_libraries (Whispercpp INTERFACE "-framework Accelerate -framework CoreML -framework Metal" )
161161 target_link_libraries (Whispercpp INTERFACE Whispercpp::GGML Whispercpp::CoreML )
162162endif (APPLE )
163+ if (UNIX AND NOT APPLE )
164+ target_link_libraries (Whispercpp INTERFACE ${BLAS_LIBRARIES} )
165+ endif ()
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.31 ...4.12 )
1+ cmake_minimum_required (VERSION 3.28 ...4.12 )
22
33include_guard (GLOBAL )
44
You can’t perform that action at this time.
0 commit comments