Changeset 4565f6b in tol
- Timestamp:
- Oct 23, 2015, 3:14:09 PM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 2d7c45e
- Parents:
- b5cd0ed
- File:
-
- 1 edited
-
tol/cmake/modules/FindCLAPACK.cmake (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/cmake/modules/FindCLAPACK.cmake
rb5cd0ed r4565f6b 22 22 # USA. 23 23 # 24 25 find_package( LAPACK REQUIRED ) 26 if( LAPACK_FOUND ) 27 message( STATUS "LAPACK_LIBRARIES = ${LAPACK_LIBRARIES}") 28 endif() 24 29 25 30 if( NOT CLAPACK_NAME ) … … 52 57 set( NameFunction "clapack_dpotrf" ) 53 58 endif( CLAPACK_NAME STREQUAL "lapacke" ) 54 set(CMAKE_REQUIRED_LIBRARIES lapack)59 set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES}) 55 60 check_library_exists( "${CLAPACK_LIBRARY}" ${NameFunction} "" FOUND_CLAPACK_DPOTRF ) 56 61 if( NOT FOUND_CLAPACK_DPOTRF ) 57 62 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') !" ) 58 63 endif( NOT FOUND_CLAPACK_DPOTRF ) 64 set(CMAKE_REQUIRED_LIBRARIES ) 59 65 endif( CLAPACK_FOUND ) 60 66
Note: See TracChangeset
for help on using the changeset viewer.
