From: Matthias Maier Date: Tue, 27 Oct 2015 16:12:39 +0000 (-0500) Subject: CMake: Remove obsolete guard in configure_1_lapack.cmake X-Git-Tag: v8.4.0-rc2~271^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6468cc82c226e467b33d70bc01fa435b766d0351;p=dealii.git CMake: Remove obsolete guard in configure_1_lapack.cmake --- diff --git a/cmake/configure/configure_1_lapack.cmake b/cmake/configure/configure_1_lapack.cmake index a15a4e525e..cc91a6f752 100644 --- a/cmake/configure/configure_1_lapack.cmake +++ b/cmake/configure/configure_1_lapack.cmake @@ -1,6 +1,6 @@ ## --------------------------------------------------------------------- ## -## Copyright (C) 2012 - 2014 by the deal.II authors +## Copyright (C) 2012 - 2015 by the deal.II authors ## ## This file is part of the deal.II library. ## @@ -35,54 +35,47 @@ MACRO(FEATURE_LAPACK_FIND_EXTERNAL var) # Push -pthread as well: ENABLE_IF_SUPPORTED(CMAKE_REQUIRED_FLAGS "-pthread") - IF(CMAKE_C_COMPILER_WORKS) + INCLUDE(CheckCSourceCompiles) + CHECK_C_SOURCE_COMPILES(" + char daxpy_(); char dgeev_(); char dgeevx_(); char dgelsd_(); char + dgemm_(); char dgemv_(); char dgeqrf_(); char dgesdd_(); char + dgesvd_(); char dgetrf_(); char dgetri_(); char dgetrs_(); char + dorgqr_(); char dormqr_(); char dstev_(); char dsyevx_(); char + dsygv_(); char dsygvx_(); char dtrtrs_(); char saxpy_(); char + sgeev_(); char sgeevx_(); char sgelsd_(); char sgemm_(); char + sgemv_(); char sgeqrf_(); char sgesdd_(); char sgesvd_(); char + sgetrf_(); char sgetri_(); char sgetrs_(); char sorgqr_(); char + sormqr_(); char sstev_(); char ssyevx_(); char ssygv_(); char + ssygvx_(); char strtrs_(); + int main(){ + daxpy_ (); dgeev_ (); dgeevx_ (); dgelsd_ (); dgemm_ (); dgemv_ (); + dgeqrf_ (); dgesdd_ (); dgesvd_ (); dgetrf_ (); dgetri_ (); dgetrs_ + (); dorgqr_ (); dormqr_ (); dstev_ (); dsyevx_ (); dsygv_ (); + dsygvx_ (); dtrtrs_ (); saxpy_ (); sgeev_ (); sgeevx_ (); sgelsd_ + (); sgemm_ (); sgemv_ (); sgeqrf_ (); sgesdd_ (); sgesvd_ (); + sgetrf_ (); sgetri_ (); sgetrs_ (); sorgqr_ (); sormqr_ (); sstev_ + (); ssyevx_ (); ssygv_ (); ssygvx_ (); strtrs_ (); - INCLUDE(CheckCSourceCompiles) - CHECK_C_SOURCE_COMPILES(" - char daxpy_(); char dgeev_(); char dgeevx_(); char dgelsd_(); char - dgemm_(); char dgemv_(); char dgeqrf_(); char dgesdd_(); char - dgesvd_(); char dgetrf_(); char dgetri_(); char dgetrs_(); char - dorgqr_(); char dormqr_(); char dstev_(); char dsyevx_(); char - dsygv_(); char dsygvx_(); char dtrtrs_(); char saxpy_(); char - sgeev_(); char sgeevx_(); char sgelsd_(); char sgemm_(); char - sgemv_(); char sgeqrf_(); char sgesdd_(); char sgesvd_(); char - sgetrf_(); char sgetri_(); char sgetrs_(); char sorgqr_(); char - sormqr_(); char sstev_(); char ssyevx_(); char ssygv_(); char - ssygvx_(); char strtrs_(); - int main(){ - daxpy_ (); dgeev_ (); dgeevx_ (); dgelsd_ (); dgemm_ (); dgemv_ (); - dgeqrf_ (); dgesdd_ (); dgesvd_ (); dgetrf_ (); dgetri_ (); dgetrs_ - (); dorgqr_ (); dormqr_ (); dstev_ (); dsyevx_ (); dsygv_ (); - dsygvx_ (); dtrtrs_ (); saxpy_ (); sgeev_ (); sgeevx_ (); sgelsd_ - (); sgemm_ (); sgemv_ (); sgeqrf_ (); sgesdd_ (); sgesvd_ (); - sgetrf_ (); sgetri_ (); sgetrs_ (); sorgqr_ (); sormqr_ (); sstev_ - (); ssyevx_ (); ssygv_ (); ssygvx_ (); strtrs_ (); + return 0; + }" + LAPACK_SYMBOL_CHECK) - return 0; - }" - LAPACK_SYMBOL_CHECK) - - IF(NOT LAPACK_SYMBOL_CHECK) - MESSAGE(STATUS - "Could not find a sufficient BLAS/LAPACK installation: " - "BLAS/LAPACK symbol check failed! Consult CMakeFiles/CMakeError.log " - "for further information." - ) - SET(LAPACK_ADDITIONAL_ERROR_STRING - ${LAPACK_ADDITIONAL_ERROR_STRING} - "Could not find a sufficient BLAS/LAPACK installation: \n" - "BLAS/LAPACK symbol check failed! This usually means that your " - "BLAS/LAPACK installation is incomplete or the link line is " - "broken. Consult\n" - " CMakeFiles/CMakeError.log\n" - "for further information.\n" - ) - SET(${var} FALSE) - ENDIF() - ELSE() + IF(NOT LAPACK_SYMBOL_CHECK) MESSAGE(STATUS - "No suitable C compiler was found! Skipping LAPACK symbol check." + "Could not find a sufficient BLAS/LAPACK installation: " + "BLAS/LAPACK symbol check failed! Consult CMakeFiles/CMakeError.log " + "for further information." + ) + SET(LAPACK_ADDITIONAL_ERROR_STRING + ${LAPACK_ADDITIONAL_ERROR_STRING} + "Could not find a sufficient BLAS/LAPACK installation: \n" + "BLAS/LAPACK symbol check failed! This usually means that your " + "BLAS/LAPACK installation is incomplete or the link line is " + "broken. Consult\n" + " CMakeFiles/CMakeError.log\n" + "for further information.\n" ) + SET(${var} FALSE) ENDIF() ENDIF() ENDMACRO()