From 648b92c0930f6bd5ee3cf50dd6f9d8e4b4a0ac06 Mon Sep 17 00:00:00 2001 From: Wilber Date: Wed, 4 Nov 2020 08:29:40 -0600 Subject: [PATCH] [sw] Update compile error for sw (#28419) --- cmake/cblas.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/cblas.cmake b/cmake/cblas.cmake index 75bb8bdda21..6056b53bc22 100644 --- a/cmake/cblas.cmake +++ b/cmake/cblas.cmake @@ -102,7 +102,7 @@ if(NOT DEFINED CBLAS_PROVIDER AND WITH_SYSTEM_BLAS) find_library(REFERENCE_CBLAS_LIBRARY NAMES cblas PATHS ${REFERENCE_CBLAS_LIB_SEARCH_PATHS}) find_library(REFERENCE_BLAS_LIBRARY NAMES blas PATHS - ${REFERENCE_BLAS_LIB_SEARCH_PATHS}) + ${REFERENCE_CBLAS_LIB_SEARCH_PATHS}) if(REFERENCE_CBLAS_INCLUDE_DIR AND REFERENCE_CBLAS_LIBRARY) set(CBLAS_PROVIDER REFERENCE_CBLAS) @@ -127,9 +127,9 @@ endif() # linear algebra libraries for cc_library(xxx SRCS xxx.c DEPS cblas) include_directories(${CBLAS_INC_DIR}) -if(NOT ${CBLAS_PROVIDER} STREQUAL MKLML) - target_link_libraries(cblas ${CBLAS_LIBRARIES}) -elseif(${CBLAS_PROVIDER} STREQUAL REFERENCE_CBLAS) +if(${CBLAS_PROVIDER} STREQUAL REFERENCE_CBLAS) target_link_libraries(cblas gfortran ${CBLAS_LIBRARIES} ${REFERENCE_BLAS_LIBRARY}) +elseif(NOT ${CBLAS_PROVIDER} STREQUAL MKLML) + target_link_libraries(cblas ${CBLAS_LIBRARIES}) endif() -- GitLab