streamline
This commit is contained in:
parent
ea89ce9f0d
commit
2614ce9cf2
@ -36,7 +36,7 @@ if(ENABLE_CBLAS)
|
||||
|
||||
if(APPLE)
|
||||
_find_library(Accelerate cblas_dgemm CBLAS_LIBRARIES)
|
||||
_find_include_dir(Accelerate/Accelerate.h /usr CBLAS_INCLUDE_DIR)
|
||||
_find_include_dir(Accelerate.h /usr CBLAS_INCLUDE_DIR)
|
||||
else()
|
||||
_find_library(cblas cblas_dgemm CBLAS_LIBRARIES)
|
||||
_find_include_dir(cblas.h /usr CBLAS_INCLUDE_DIR)
|
||||
|
@ -8,7 +8,9 @@ function(_find_include_dir _names _hints _result)
|
||||
set(_all_include_files_work TRUE)
|
||||
foreach(_name ${_names})
|
||||
check_include_file(${_include_dir}/${_name} _include_file_works)
|
||||
set(_all_include_files_work (${_all_include_files_work} AND ${_include_file_works}))
|
||||
if(NOT _include_file_works)
|
||||
set(_all_include_files_work FALSE)
|
||||
endif()
|
||||
endforeach()
|
||||
if(${_all_include_files_work})
|
||||
set(${_result} ${_include_dir} PARENT_SCOPE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user