Skip to content
Snippets Groups Projects
Commit c48af8b1 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

CMake : add custom blas/lapack

parent 5af39d2e
No related branches found
No related tags found
No related merge requests found
...@@ -221,6 +221,11 @@ if(SIZEOF_VOID_P EQUAL 8) ...@@ -221,6 +221,11 @@ if(SIZEOF_VOID_P EQUAL 8)
endif(SIZEOF_VOID_P EQUAL 8) endif(SIZEOF_VOID_P EQUAL 8)
if(ENABLE_BLAS_LAPACK) if(ENABLE_BLAS_LAPACK)
if(BLAS_LAPACK_LIBRARIES)
set_config_option(HAVE_BLAS "Blas(Custom)")
set_config_option(HAVE_LAPACK "Lapack(Custom)")
set(LAPACK_LIBRARIES ${BLAS_LAPACK_LIBRARIES})
else(BLAS_LAPACK_LIBRARIES)
if(MSVC) if(MSVC)
# on Windows with Visual C++ try really hard to find blas/lapack # on Windows with Visual C++ try really hard to find blas/lapack
# *without* requiring a Fortran compiler: 1) try to find the Intel # *without* requiring a Fortran compiler: 1) try to find the Intel
...@@ -337,6 +342,7 @@ if(ENABLE_BLAS_LAPACK) ...@@ -337,6 +342,7 @@ if(ENABLE_BLAS_LAPACK)
message(STATUS "Warning: Could not find Blas or Lapack: most meshing algorithms " message(STATUS "Warning: Could not find Blas or Lapack: most meshing algorithms "
"will not be functional") "will not be functional")
endif(NOT HAVE_BLAS OR NOT HAVE_LAPACK) endif(NOT HAVE_BLAS OR NOT HAVE_LAPACK)
endif(BLAS_LAPACK_LIBRARIES)
endif(ENABLE_BLAS_LAPACK) endif(ENABLE_BLAS_LAPACK)
add_subdirectory(Common) add_subdirectory(Common)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment