From db6ff20c43112038cc901c605e02b4011dbe433d Mon Sep 17 00:00:00 2001 From: Kyle Guinn Date: Fri, 3 Feb 2017 00:56:24 -0600 Subject: Use the BUILD_* option variables for BLAS and CBLAS Removes duplication and allows error checking to be done in one spot. Moved most of the status printouts to where the options are defined. --- BLAS/SRC/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'BLAS') diff --git a/BLAS/SRC/CMakeLists.txt b/BLAS/SRC/CMakeLists.txt index 42930279..c0d5604a 100644 --- a/BLAS/SRC/CMakeLists.txt +++ b/BLAS/SRC/CMakeLists.txt @@ -116,16 +116,16 @@ set(ZBLAS3 zgemm.f zsymm.f zsyrk.f zsyr2k.f ztrmm.f ztrsm.f set(SOURCES) -if(BLAS_SINGLE) +if(BUILD_SINGLE) list(APPEND SOURCES ${SBLAS1} ${ALLBLAS} ${SBLAS2} ${SBLAS3}) endif() -if(BLAS_DOUBLE) +if(BUILD_DOUBLE) list(APPEND SOURCES ${DBLAS1} ${ALLBLAS} ${DBLAS2} ${DBLAS3}) endif() -if(BLAS_COMPLEX) +if(BUILD_COMPLEX) list(APPEND SOURCES ${CBLAS1} ${CB1AUX} ${ALLBLAS} ${CBLAS2} ${CBLAS3}) endif() -if(BLAS_COMPLEX16) +if(BUILD_COMPLEX16) list(APPEND SOURCES ${ZBLAS1} ${ZB1AUX} ${ALLBLAS} ${ZBLAS2} ${ZBLAS3}) endif() list(REMOVE_DUPLICATES SOURCES) -- cgit v1.2.3