File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ set(OPENBLAS_LIB_SEARCH_PATHS
40
40
/usr/local/opt/openblas/lib )
41
41
42
42
find_path (OPENBLAS_INC_DIR NAMES cblas.h
43
- PATHS ${OPENBLAS_INCLUDE_SEARCH_PATHS} )
43
+ PATHS ${OPENBLAS_INCLUDE_SEARCH_PATHS} NO_DEFAULT_PATH )
44
44
find_path (OPENBLAS_LAPACKE_INC_DIR NAMES lapacke.h
45
45
PATHS ${OPENBLAS_INCLUDE_SEARCH_PATHS} )
46
46
find_library (OPENBLAS_LIB NAMES openblas
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ IF(NOT ${CBLAS_FOUND})
27
27
28
28
SET (CBLAS_SOURCES_DIR ${THIRD_PARTY_PATH} /openblas )
29
29
SET (CBLAS_INSTALL_DIR ${THIRD_PARTY_PATH} /install/openblas )
30
- SET (CBLAS_INCLUDE_DIR "${CBLAS_INSTALL_DIR} /include" CACHE PATH "openblas include directory." FORCE )
30
+ SET (CBLAS_INC_DIR "${CBLAS_INSTALL_DIR} /include" CACHE PATH "openblas include directory." FORCE )
31
31
32
32
SET (CBLAS_LIBRARIES
33
33
"${CBLAS_INSTALL_DIR} /lib/${CMAKE_STATIC_LIBRARY_PREFIX} openblas${CMAKE_STATIC_LIBRARY_SUFFIX} "
@@ -96,7 +96,7 @@ IF(NOT ${CBLAS_FOUND})
96
96
ENDIF (NOT WIN32 )
97
97
SET (CBLAS_PROVIDER openblas )
98
98
IF (WITH_C_API )
99
- INSTALL (DIRECTORY ${CBLAS_INCLUDE_DIR } DESTINATION third_party/openblas )
99
+ INSTALL (DIRECTORY ${CBLAS_INC_DIR } DESTINATION third_party/openblas )
100
100
# Because libopenblas.a is a symbolic link of another library, thus need to
101
101
# install the whole directory.
102
102
IF (ANDROID )
@@ -117,8 +117,8 @@ IF(NOT ${CBLAS_FOUND})
117
117
ENDIF (NOT ${CBLAS_FOUND} )
118
118
119
119
MESSAGE (STATUS "BLAS library: ${CBLAS_LIBRARIES} " )
120
- MESSAGE (STATUS "BLAS Include: ${CBLAS_INCLUDE_DIR } " )
121
- INCLUDE_DIRECTORIES (${CBLAS_INCLUDE_DIR } )
120
+ MESSAGE (STATUS "BLAS Include: ${CBLAS_INC_DIR } " )
121
+ INCLUDE_DIRECTORIES (${CBLAS_INC_DIR } )
122
122
123
123
# FIXME(gangliao): generate cblas target to track all high performance
124
124
# linear algebra libraries for cc_library(xxx SRCS xxx.c DEPS cblas)
You can’t perform that action at this time.
0 commit comments