mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
handle missing BLAS library
This commit is contained in:
parent
f118d35157
commit
67ebd4abfa
1 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,10 @@ if (NOT GSL_FOUND)
|
|||
find_package(GSL)
|
||||
endif()
|
||||
|
||||
if (NOT BLAS_FOUND)
|
||||
find_package(BLAS)
|
||||
endif()
|
||||
|
||||
set(RLDP_SOURCE
|
||||
Ack.cpp
|
||||
Bbr.cpp
|
||||
|
@ -50,7 +54,7 @@ target_include_directories(rldp PUBLIC
|
|||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/..
|
||||
${OPENSSL_INCLUDE_DIR}
|
||||
)
|
||||
if (GSL_FOUND)
|
||||
if (GSL_FOUND AND BLAS_FOUND)
|
||||
target_link_libraries(rldp2 PRIVATE gsl)
|
||||
target_compile_definitions(rldp2 PRIVATE -DTON_HAVE_GSL=1)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue