streamline

This commit is contained in:
Radovan Bast 2015-09-17 01:28:30 +02:00
parent ea89ce9f0d
commit 2614ce9cf2
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)