mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Added a flag to build blas/lapack.
This commit is contained in:
parent
683ea3c93f
commit
b96d0bd240
@ -343,12 +343,24 @@ else()
|
||||
add_subdirectory(test EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
|
||||
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
|
||||
add_subdirectory(blas)
|
||||
add_subdirectory(lapack)
|
||||
# The flag below can be removed when the CMake issue
|
||||
# http://public.kitware.com/Bug/view.php?id=9220
|
||||
# is fixed and when the cmake_minimum_required(VERSION ...)
|
||||
# is accordingly adapted.
|
||||
if(MSVC)
|
||||
set(EIGEN_BUILD_BLAS_LAPACK FALSE CACHE BOOL "Activates blas and lapack subfolders inclusion.")
|
||||
else()
|
||||
add_subdirectory(blas EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(lapack EXCLUDE_FROM_ALL)
|
||||
set(EIGEN_BUILD_BLAS_LAPACK TRUE CACHE BOOL "Activates blas and lapack subfolders inclusion.")
|
||||
endif()
|
||||
|
||||
if(EIGEN_BUILD_BLAS_LAPACK)
|
||||
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
|
||||
add_subdirectory(blas)
|
||||
add_subdirectory(lapack)
|
||||
else()
|
||||
add_subdirectory(blas EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(lapack EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_subdirectory(unsupported)
|
||||
|
Loading…
Reference in New Issue
Block a user