Added a flag to build blas/lapack.

This commit is contained in:
Hauke Heibel 2011-10-04 11:23:55 +02:00
parent 683ea3c93f
commit b96d0bd240

View File

@ -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)