[cmake] try to fix openblas include dir
@@ -248,8 +248,13 @@ if(NOT BLAS_FOUND)
# to ensure that std::complex<double> can be casted to double* and produces good results we should enfore std=c++11
# Right now openblas ships with a cblas.h header which uses double* as type for pointer to double complex, which makes ublas cry since it
# want to pass std::complex<double>*
- set(BLAS_INCLUDE_SUFFIXES cblas_header)
- set(INCLUDE_DIR_HINTS ${CMAKE_SOURCE_DIR}/externals/blas_lapack)
+ #set(BLAS_INCLUDE_SUFFIXES cblas_header)
+ #set(INCLUDE_DIR_HINTS ${CMAKE_SOURCE_DIR}/externals/blas_lapack)
+
+ get_filename_component(_bdir ${BLAS_LIBRARIES} DIRECTORY)
+ set(INCLUDE_DIR_HINTS "${_bdir}/../include/openblas/")
+ set(OPENBLAS_FOUND 1)
+
endif(BLAS_LIBRARIES)
endif()
@@ -452,4 +457,3 @@ if(NOT BLAS_FOUND)
endif(NOT BLAS_FIND_QUIETLY)
endif()
-
