mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-17 03:43:13 +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)
|
add_subdirectory(test EXCLUDE_FROM_ALL)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EIGEN_LEAVE_TEST_IN_ALL_TARGET)
|
# The flag below can be removed when the CMake issue
|
||||||
add_subdirectory(blas)
|
# http://public.kitware.com/Bug/view.php?id=9220
|
||||||
add_subdirectory(lapack)
|
# 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()
|
else()
|
||||||
add_subdirectory(blas EXCLUDE_FROM_ALL)
|
set(EIGEN_BUILD_BLAS_LAPACK TRUE CACHE BOOL "Activates blas and lapack subfolders inclusion.")
|
||||||
add_subdirectory(lapack EXCLUDE_FROM_ALL)
|
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()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(unsupported)
|
add_subdirectory(unsupported)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user