| ------------------------------------------------------------------------ | r65557 | lrineau | 2011-09-26 16:49:02 +0200 (Mon, 26 Sep 2011) | 9 lines | Changed paths: | M /branches/next/Installation/cmake/modules/CGAL_UseBLAS.cmake | M /branches/next/Installation/cmake/modules/CGAL_UseLAPACK.cmake | M /branches/next/Installation/cmake/modules/FindBLAS.cmake | M /branches/next/Installation/cmake/modules/FindLAPACK.cmake | M /branches/next/Installation/doc_tex/Installation/installation.tex | | BLAS and LAPACK do not have header files. | | One implementation of BLAS or LAPACK can have a header file, but that is | not mandatory for an implementation, and (hopefully) nothing in CGAL tries | to include a blas.h or a lapack.h. | | The current revision removes mentions of BLAS_INCLUDE_DIR and | LAPACK_INCLUDE_DIR in CGAL cmake scripts about BLAS and LAPACK. | | ------------------------------------------------------------------------ Reason: For the implementation cblas/clapack, our use of that implementation does need a header <blaswrap.h> to work.
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
# This module setups the compiler for the BLAS libraries.
|
|
# It assumes that find_package(BLAS) was already called.
|
|
|
|
if ( BLAS_FOUND AND NOT CGAL_BLAS_SETUP )
|
|
|
|
message( STATUS "BLAS include: ${BLAS_INCLUDE_DIR}" )
|
|
include_directories ( ${BLAS_INCLUDE_DIR} )
|
|
|
|
message( STATUS "BLAS definitions: ${BLAS_DEFINITIONS}" )
|
|
add_definitions( ${BLAS_DEFINITIONS} )
|
|
if ( "${BLAS_DEFINITIONS}" MATCHES ".*BLAS_USE_F2C.*" )
|
|
add_definitions( "-DCGAL_USE_F2C" )
|
|
endif()
|
|
|
|
if (BLAS_LIBRARIES_DIR)
|
|
message( STATUS "BLAS library directories: ${BLAS_LIBRARIES_DIR}" )
|
|
link_directories( ${BLAS_LIBRARIES_DIR} )
|
|
endif()
|
|
if (BLAS_LIBRARIES)
|
|
message( STATUS "BLAS libraries: ${BLAS_LIBRARIES}" )
|
|
link_libraries( ${BLAS_LIBRARIES} )
|
|
endif()
|
|
|
|
message( STATUS "BLAS link flags: ${BLAS_LINKER_FLAGS}" )
|
|
if ( BUILD_SHARED_LIBS )
|
|
uniquely_add_flags( CMAKE_SHARED_LINKER_FLAGS ${BLAS_LINKER_FLAGS} )
|
|
else()
|
|
uniquely_add_flags( CMAKE_MODULE_LINKER_FLAGS ${BLAS_LINKER_FLAGS} )
|
|
endif()
|
|
|
|
# Setup is done
|
|
set ( CGAL_BLAS_SETUP TRUE )
|
|
|
|
endif()
|
|
|