Changeset a965ab8 in tol
- Timestamp:
- Dec 11, 2015, 9:47:26 AM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 4ff8483
- Parents:
- 3ea8b10
- File:
-
- 1 edited
-
tol/cmake/modules/FindCLAPACK.cmake (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/cmake/modules/FindCLAPACK.cmake
r3ea8b10 ra965ab8 54 54 55 55 set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES}) 56 check_library_exists( "" ${NameFunction} "" FOUND_CLAPACK_DPOTRF ) 56 list( GET LAPACK_LIBRARIES 0 first_lib ) 57 check_library_exists( ${first_lib} ${NameFunction} "" FOUND_CLAPACK_DPOTRF ) 57 58 if( FOUND_CLAPACK_DPOTRF ) 58 59 message( STATUS "${CLAPACK_NAME} API found in LAPACK" ) 59 60 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 ) 62 62 set( CLAPACK_FOUND TRUE ) 63 63 else( FOUND_CLAPACK_DPOTRF ) … … 75 75 if ( CLAPACK_FOUND ) 76 76 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 ) 81 81 set(CMAKE_REQUIRED_LIBRARIES ) 82 82 endif( CLAPACK_FOUND )
Note: See TracChangeset
for help on using the changeset viewer.
