d8f540bef0
Fix the following build failure without BUILD_COMPLEX raised since bump to version 3.10.1 in commitb3e96b1fb0
andbd1fba15d0
: CMake Error at LAPACKE/CMakeLists.txt:38 (message): LAPACKE_BUILD_COMPLEX requires BUILD_COMPLEX to be ON CMake Error at LAPACKE/CMakeLists.txt:38 (message): LAPACKE_BUILD_COMPLEX16 requires BUILD_COMPLEX16 to be ON Fixes: - http://autobuild.buildroot.org/results/418d15f734c87a70edf0d670c0548d550e6e70ba Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
31 lines
817 B
Makefile
31 lines
817 B
Makefile
################################################################################
|
|
#
|
|
# lapack
|
|
#
|
|
################################################################################
|
|
|
|
LAPACK_VERSION = 3.10.1
|
|
LAPACK_LICENSE = BSD-3-Clause
|
|
LAPACK_LICENSE_FILES = LICENSE
|
|
LAPACK_SITE = $(call github,Reference-LAPACK,lapack,v$(LAPACK_VERSION))
|
|
LAPACK_CPE_ID_VENDOR = lapack_project
|
|
LAPACK_INSTALL_STAGING = YES
|
|
LAPACK_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
LAPACK_CONF_OPTS = -DLAPACKE=ON -DCBLAS=ON
|
|
|
|
ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y)
|
|
LAPACK_CONF_OPTS += \
|
|
-DBUILD_COMPLEX=ON \
|
|
-DBUILD_COMPLEX16=ON \
|
|
-DLAPACKE_BUILD_COMPLEX=ON \
|
|
-DLAPACKE_BUILD_COMPLEX16=ON
|
|
else
|
|
LAPACK_CONF_OPTS += \
|
|
-DBUILD_COMPLEX=OFF \
|
|
-DBUILD_COMPLEX16=OFF \
|
|
-DLAPACKE_BUILD_COMPLEX=OFF \
|
|
-DLAPACKE_BUILD_COMPLEX16=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|