mirror of https://github.com/CGAL/cgal
29 lines
804 B
CMake
29 lines
804 B
CMake
# Do not check BLAS_FOUND as it may be set by FindBLAS.cmake
|
|
# if ( NOT BLAS_FOUND )
|
|
|
|
find_package( BLAS )
|
|
|
|
if ( BLAS_FOUND )
|
|
|
|
message( STATUS "BLAS definitions: ${BLAS_DEFINITIONS}" )
|
|
if (BLAS_LIBRARIES_DIR)
|
|
message( STATUS "BLAS library directories: ${BLAS_LIBRARIES_DIR}" )
|
|
endif()
|
|
if (BLAS_LIBRARIES)
|
|
message( STATUS "BLAS libraries: ${BLAS_LIBRARIES}" )
|
|
endif()
|
|
message( STATUS "BLAS link flags: ${BLAS_LINKER_FLAGS}" )
|
|
|
|
add_definitions( ${BLAS_DEFINITIONS} "-DCGAL_USE_BLAS" )
|
|
if ( "${BLAS_DEFINITIONS}" MATCHES ".*BLAS_USE_F2C.*" )
|
|
add_definitions( "-DCGAL_USE_F2C" )
|
|
endif()
|
|
|
|
link_directories( ${BLAS_LIBRARIES_DIR} )
|
|
link_libraries( ${BLAS_LIBRARIES} ${BLAS_LINKER_FLAGS} )
|
|
|
|
endif()
|
|
|
|
# endif()
|
|
|