Skip to content

Commit a765f60

Browse files
committed
cmake: include LAPACKE subdir only if it was selected
1 parent 31a3668 commit a765f60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ endif()
444444
set(LAPACK_INSTALL_EXPORT_NAME ${LAPACK_INSTALL_EXPORT_NAME_CACHE})
445445
unset(LAPACK_INSTALL_EXPORT_NAME_CACHE)
446446

447-
add_subdirectory(LAPACKE)
447+
if(LAPACKE)
448+
add_subdirectory(LAPACKE)
449+
endif()
448450

449451

450452
#-------------------------------------

0 commit comments

Comments
 (0)