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

26 lines
599 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 ATLAS.
#
# Variables defined::
#
# ATLAS_FOUND
# ATLAS_LIBRARIES
# ATLAS_INCLUDE_DIR
#
# autocmake.yml configuration::
#
# docopt: "--atlas Find and link to ATLAS [default: False]."
# define: "'-DENABLE_ATLAS={0}'.format(arguments['--atlas'])"
option(ENABLE_ATLAS "Find and link to ATLAS" OFF)
if(ENABLE_ATLAS)
set(BLA_VENDOR "ATLAS")
find_package(BLAS REQUIRED)
unset(BLA_VENDOR)
endif()