Fixing link to OpenBLAS

This commit is contained in:
Carles Fernandez 2014-08-01 13:49:55 +02:00
parent 3e99566dd3
commit 2fcb2e14e8
1 changed files with 2 additions and 2 deletions

View File

@ -582,7 +582,7 @@ if(OS_IS_LINUX)
############################################################################# #############################################################################
# Check that BLAS is found in the system # Check that BLAS is found in the system
# BLAS is used for matrix multiplication. # BLAS is used for matrix multiplication.
#ÊWithout BLAS, matrix multiplication will still work, but might be slower. # Without BLAS, matrix multiplication will still work, but might be slower.
############################################################################# #############################################################################
find_library(BLAS blas) find_library(BLAS blas)
if(NOT BLAS) if(NOT BLAS)
@ -698,7 +698,7 @@ if(NOT ARMADILLO_FOUND)
find_library(LAPACK NAMES lapack HINTS /usr/lib /usr/local/lib /usr/lib64) find_library(LAPACK NAMES lapack HINTS /usr/lib /usr/local/lib /usr/lib64)
find_package(OpenBLAS) find_package(OpenBLAS)
if(OPENBLAS_FOUND) if(OPENBLAS_FOUND)
set(BLAS OPENBLAS) set(BLAS ${OPENBLAS})
endif(OPENBLAS_FOUND) endif(OPENBLAS_FOUND)
set(ARMADILLO_LIBRARIES ${BLAS} ${LAPACK} ${GFORTRAN} ${binary_dir}/${CMAKE_FIND_LIBRARY_PREFIXES}armadillo.a) set(ARMADILLO_LIBRARIES ${BLAS} ${LAPACK} ${GFORTRAN} ${binary_dir}/${CMAKE_FIND_LIBRARY_PREFIXES}armadillo.a)
set(LOCAL_ARMADILLO true CACHE STRING "Armadillo downloaded and built automatically" FORCE) set(LOCAL_ARMADILLO true CACHE STRING "Armadillo downloaded and built automatically" FORCE)