Changeset 4565f6b in tol


Ignore:
Timestamp:
Oct 23, 2015, 3:14:09 PM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
2d7c45e
Parents:
b5cd0ed
Message:

correcciones para detectar lapacke

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

File:
1 edited

Legend:

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

    rb5cd0ed r4565f6b  
    2222# USA.
    2323#
     24
     25find_package( LAPACK REQUIRED )
     26if( LAPACK_FOUND )
     27  message( STATUS "LAPACK_LIBRARIES = ${LAPACK_LIBRARIES}")
     28endif()
    2429
    2530if( NOT CLAPACK_NAME )
    … …  
    5257    set( NameFunction "clapack_dpotrf" )
    5358  endif( CLAPACK_NAME STREQUAL "lapacke" )
    54   set(CMAKE_REQUIRED_LIBRARIES lapack)
     59  set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES})
    5560  check_library_exists( "${CLAPACK_LIBRARY}" ${NameFunction} "" FOUND_CLAPACK_DPOTRF )
    5661  if( NOT FOUND_CLAPACK_DPOTRF )
    5762    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') !" )
    5863  endif( NOT FOUND_CLAPACK_DPOTRF )
     64  set(CMAKE_REQUIRED_LIBRARIES )
    5965endif( CLAPACK_FOUND )
    6066
Note: See TracChangeset for help on using the changeset viewer.