Changeset 67d200b in tol
- Timestamp:
- Jan 14, 2015, 7:49:09 AM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 434fc17
- Parents:
- c07874d
- Location:
- tol
- Files:
-
- 1 added
- 3 edited
-
CMakeLists.txt (modified) (3 diffs)
-
btol/vmatrix_type/CMakeLists.txt (modified) (1 diff)
-
cmake/modules/FindCBLAS.cmake (modified) (2 diffs)
-
cmake/modules/FindCLAPACK.cmake (added)
Legend:
- Unmodified
- Added
- Removed
-
tol/CMakeLists.txt
rc07874d r67d200b 91 91 endif( ) 92 92 93 # GS lconfiguration93 # GSL configuration 94 94 find_package( GSL REQUIRED ) 95 95 … … 100 100 endif( ) 101 101 102 # CBLAS configuration 102 103 find_package( CBLAS ) 103 104 if( CBLAS_FOUND ) 104 105 set( HAVE_CBLAS_H 1 CACHE INTERNAL "" ) 105 106 if( TRACE_COMPONENTS_FOUND ) 107 message( "CBLAS_INCLUDE_DIR = ${CBLAS_INCLUDE_DIR}" ) 106 108 message( "CBLAS_LIBRARY = ${CBLAS_LIBRARY}" ) 107 message( "CBLAS_ INCLUDE_DIR = ${CBLAS_INCLUDE_DIR}" )109 message( "CBLAS_LIBRARIES = ${CBLAS_LIBRARIES}" ) 108 110 endif( TRACE_COMPONENTS_FOUND ) 109 111 else( CBLAS_FOUND ) 110 112 message( STATUS "CBLAS not found, using gslcblas = ${GSLCBLAS_LIBRARY}" ) 111 113 set( CBLAS_LIBRARY ${GSL_CBLAS_LIBRARY} ) 114 set( CBLAS_LIBRARIES ${GSL_CBLAS_LIBRARIES} ) 112 115 set( CBLAS_INCLUDE_DIR ${GSL_INCLUDE_DIRS} ) 113 116 endif( CBLAS_FOUND ) 117 118 # CLAPACK configuration 119 find_package( CLAPACK REQUIRED ) 120 121 if( CLAPACK_FOUND AND TRACE_COMPONENTS_FOUND ) 122 message("CLAPACK_INCLUDE_DIR = ${CLAPACK_INCLUDE_DIR}") 123 message("CLAPACK_LIBRARY = ${CLAPACK_LIBRARY}") 124 message("CLAPACK_LIBRARIES = ${CLAPACK_LIBRARIES}") 125 endif( ) 126 114 127 # BZIP2 configuration 115 128 find_package( BZip2 REQUIRED ) … … 219 232 add_library( tol SHARED ${TOL_SUBLIBRARIES} ) 220 233 target_link_libraries( tol 221 ${GSL_LIBRARY} ${CBLAS_LIBRARY} ${BZIP2_LIBRARIES} ${Boost_LIBRARIES} 234 ${GSL_LIBRARY} ${CBLAS_LIBRARIES} ${CLAPACK_LIBRARIES} 235 ${BZIP2_LIBRARIES} ${Boost_LIBRARIES} 222 236 ${LAPACK_LIBRARIES} ${FFTW_LIBRARIES} ${ZLIB_LIBRARIES} 223 237 ${ZIPARCHIVE_LIBRARY} ${CHOLMOD_LIBRARIES} ${LTDL_LIBRARIES} ) -
tol/btol/vmatrix_type/CMakeLists.txt
rc07874d r67d200b 9 9 target_include_directories( vmatrix_type PRIVATE 10 10 "${CHOLMOD_INCLUDE_DIR}" 11 "${PROJECT_SOURCE_DIR}/bmath/gsl_ext" ) 11 "${PROJECT_SOURCE_DIR}/bmath/gsl_ext" 12 "{$CBLAS_INCLUDE_DIR}" ) -
tol/cmake/modules/FindCBLAS.cmake
rc07874d r67d200b 33 33 34 34 include( FindPackageHandleStandardArgs ) 35 # handle the QUIETLY and REQUIRED arguments and set FFTW3_FOUND to TRUE35 # handle the QUIETLY and REQUIRED arguments and set CLAPACK_FOUND to TRUE 36 36 # if all listed variables are TRUE 37 37 … … 42 42 check_library_exists( "${CBLAS_LIBRARY}" cblas_dtrsm "" FOUND_CBLAS_DTRSM ) 43 43 if( NOT FOUND_CBLAS_DTRSM ) 44 message( FATAL_ERROR "Could not find cblas_dtrsm in ${CBLAS_LIBRARY}, take a look at the error message in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log to find out what was going wrong. If you don't have pkg-config installed you will most likely have to set CBLAS_LIBRARY by hand (i.e. -DCBLAS_LIBRARY='/path/to/libcblas.so') !" )44 message( FATAL_ERROR "Could not find cblas_dtrsm in ${CBLAS_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 will most likely have to set CBLAS_LIBRARY by hand (i.e. -DCBLAS_LIBRARY='/path/to/libcblas.so') !" ) 45 45 endif( NOT FOUND_CBLAS_DTRSM ) 46 46 endif (CBLAS_FOUND)
Note: See TracChangeset
for help on using the changeset viewer.
