Skip to content

Commit 2ed4c99

Browse files
authored
Merge 1c163c8 into 31a3668
2 parents 31a3668 + 1c163c8 commit 2ed4c99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ set(
1010
${LAPACK_MAJOR_VERSION}.${LAPACK_MINOR_VERSION}.${LAPACK_PATCH_VERSION}
1111
)
1212

13+
# Allow setting a prefix for the library names
14+
set(CMAKE_STATIC_LIBRARY_PREFIX "lib${LIBRARY_PREFIX}")
15+
set(CMAKE_SHARED_LIBRARY_PREFIX "lib${LIBRARY_PREFIX}")
16+
1317
# Add the CMake directory for custom CMake modules
1418
set(CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH})
1519

@@ -444,7 +448,9 @@ endif()
444448
set(LAPACK_INSTALL_EXPORT_NAME ${LAPACK_INSTALL_EXPORT_NAME_CACHE})
445449
unset(LAPACK_INSTALL_EXPORT_NAME_CACHE)
446450

447-
add_subdirectory(LAPACKE)
451+
if(LAPACKE)
452+
add_subdirectory(LAPACKE)
453+
endif()
448454

449455

450456
#-------------------------------------

0 commit comments

Comments
 (0)