Skip to content

Commit 26a81d1

Browse files
author
Quellyn Snead
committed
Add an informative fall-through clause in case of unfamiliar
compiler (#26117).
1 parent 296e06a commit 26a81d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
9999
check_fortran_compiler_flag("-recursive" _recursiveFlag)
100100
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL XL)
101101
check_fortran_compiler_flag("-qrecur" _qrecurFlag)
102+
else()
103+
message(WARNING "Fortran local arrays should be allocated on the stack."
104+
" Please use a compiler which guarantees that feature."
105+
" See https://github.com/Reference-LAPACK/lapack/pull/188 and references therein.")
102106
endif()
103107

104108
# Add recursive flag

0 commit comments

Comments
 (0)