Skip to content

Commit 78cec62

Browse files
authored
Add ReLAPACK option
1 parent c460027 commit 78cec62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ option(BUILD_WITHOUT_LAPACK "Without LAPACK and LAPACKE (Only BLAS or CBLAS)" ON
2424
endif()
2525
option(BUILD_WITHOUT_CBLAS "Without CBLAS" OFF)
2626
option(DYNAMIC_ARCH "Build with DYNAMIC_ARCH" OFF)
27+
option(BUILD_RELAPACK "Build with ReLAPACK (recursive LAPACK" OFF)
2728
#######
2829
if(BUILD_WITHOUT_LAPACK)
2930
set(NO_LAPACK 1)
@@ -55,6 +56,9 @@ endif ()
5556
set(SUBDIRS ${BLASDIRS})
5657
if (NOT NO_LAPACK)
5758
list(APPEND SUBDIRS lapack)
59+
if(BUILD_RELAPACK)
60+
list(APPEND SUBDIRS relapack/src)
61+
endif()
5862
endif ()
5963

6064
# set which float types we want to build for
@@ -141,7 +145,7 @@ endif()
141145

142146

143147
# add objects to the openblas lib
144-
add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE})
148+
add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${RELA_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE})
145149

146150
# Handle MSVC exports
147151
if(MSVC AND BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)