Skip to content

Commit 7e8118d

Browse files
authored
Support new build option LAPACK_STRLEN
1 parent 5bdd3a0 commit 7e8118d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS
2222

2323
option(BUILD_LAPACK_DEPRECATED "When building LAPACK, include also some older, deprecated routines" ON)
2424

25+
set(LAPACK_STRLEN "" CACHE STRING "When building LAPACK, use this type (e.g. \"int\") for character lengths (defaults to size_t)")
26+
2527
option(BUILD_TESTING "Build LAPACK testsuite when building LAPACK" ON)
2628

2729
option(BUILD_BENCHMARKS "Build the collection of BLAS/LAPACK benchmarks" OFF)

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ else
4545
LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast -O -Og -Os,$(LAPACK_FFLAGS))
4646
endif
4747

48+
ifdef LAPACK_STRLEN
49+
LAPACK_FFLAGS += -DLAPACK_STRLEN=$(LAPACK_STRLEN)
50+
endif
51+
4852
SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench cpp_thread_test
4953

5054
.PHONY : all libs netlib $(RELA) test ctest shared install

0 commit comments

Comments
 (0)