link math lib on FreeBSD

This commit is contained in:
cyy 2020-11-29 17:17:07 +08:00
parent 3788b6d156
commit 3b4c016110
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ add_executable(${OpenBLAS_utest_bin} ${OpenBLAS_utest_src})
target_link_libraries(${OpenBLAS_utest_bin} ${OpenBLAS_LIBNAME})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
target_link_libraries(${OpenBLAS_utest_bin} m)
endif()