autocmake/modules/math/blas.cmake
2017-11-11 13:45:23 +01:00

24 lines
538 B
CMake

# (c) https://github.com/coderefinery/autocmake/blob/master/AUTHORS.md
# licensed under BSD-3: https://github.com/coderefinery/autocmake/blob/master/LICENSE
#.rst:
#
# Find and link to BLAS.
#
# Variables defined::
#
# BLAS_FOUND
# BLAS_LIBRARIES
# BLAS_INCLUDE_DIR
#
# autocmake.yml configuration::
#
# docopt: "--blas Find and link to BLAS [default: False]."
# define: "'-DENABLE_BLAS={0}'.format(arguments['--blas'])"
option(ENABLE_BLAS "Find and link to BLAS" OFF)
if(ENABLE_BLAS)
find_package(BLAS REQUIRED)
endif()