Changeset a965ab8 in tol


Ignore:
Timestamp:
Dec 11, 2015, 9:47:26 AM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
4ff8483
Parents:
3ea8b10
Message:

Correcciones relacionadas con la situación en la cual están instaladas dos versiones de lapack (la estandar y ATLAS). A veces hay que ayudarle invocando cmake así:

LD_LIBRARY_PATH=/usr/lib64/atlas cmake -DCLAPACK_DIR=/usr/lib64/atlas -DBLA_VENDOR=ATLAS ...

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7101 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/cmake/modules/FindCLAPACK.cmake

    r3ea8b10 ra965ab8  
    5454
    5555set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES})
    56 check_library_exists( "" ${NameFunction} "" FOUND_CLAPACK_DPOTRF )
     56list( GET LAPACK_LIBRARIES 0 first_lib )
     57check_library_exists( ${first_lib} ${NameFunction} "" FOUND_CLAPACK_DPOTRF )
    5758if( FOUND_CLAPACK_DPOTRF  )
    5859  message( STATUS "${CLAPACK_NAME} API found in LAPACK" )
    5960  set( CLAPACK_LIBRARIES ${LAPACK_LIBRARIES} )
    60   list( GET LAPACK_LIBRARIES 0 first )
    61   set( CLAPACK_LIBRARY ${first} CACHE PATH "" FORCE )
     61  set( CLAPACK_LIBRARY ${first_lib} CACHE PATH "" FORCE )
    6262  set( CLAPACK_FOUND TRUE )
    6363else( FOUND_CLAPACK_DPOTRF )
    … …  
    7575  if ( CLAPACK_FOUND )
    7676    set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES})
    77     check_library_exists( "${CLAPACK_LIBRARY}" ${NameFunction} "" FOUND_CLAPACK_DPOTRF )
    78     if( NOT FOUND_CLAPACK_DPOTRF )
    79       message( WARNING "Could not find LAPACKE_dpotrf in ${CLAPACK_LIBRARY}, take a look at the error message in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log to find out what was going wrong. You most likely have to set CLAPACK_LIBRARY by hand (i.e. -DLAPACK_LIBRARY='/path/to/libclapack.so') !" )
    80     endif( NOT FOUND_CLAPACK_DPOTRF )
     77    check_library_exists( "${CLAPACK_LIBRARY}" ${NameFunction} "" FOUND_CLAPACK_DPOTRF_OTHER )
     78    if( NOT FOUND_CLAPACK_DPOTRF_OTHER )
     79      message( WARNING "Could not find ${NameFunction} in ${CLAPACK_LIBRARY}, take a look at the error message in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log to find out what was going wrong. You most likely have to set CLAPACK_LIBRARY by hand (i.e. -DCLAPACK_LIBRARY='/path/to/libclapack.so') !" )
     80    endif( NOT FOUND_CLAPACK_DPOTRF_OTHER )
    8181    set(CMAKE_REQUIRED_LIBRARIES )
    8282  endif( CLAPACK_FOUND )
Note: See TracChangeset for help on using the changeset viewer.