autocmake/modules/math/blas.cmake
2018-06-20 17:10:31 +02:00

24 lines
530 B
CMake

# (c) https://github.com/dev-cafe/autocmake/blob/master/AUTHORS.md
# licensed under BSD-3: https://github.com/dev-cafe/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()