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

26 lines
592 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 Goto BLAS.
#
# Variables defined::
#
# GOTO_FOUND
# GOTO_LIBRARIES
# GOTO_INCLUDE_DIR
#
# autocmake.yml configuration::
#
# docopt: "--goto Find and link to GOTO [default: False]."
# define: "'-DENABLE_GOTO={0}'.format(arguments['--goto'])"
option(ENABLE_GOTO "Find and link to GOTO" OFF)
if(ENABLE_GOTO)
set(BLA_VENDOR "Goto")
find_package(BLAS REQUIRED)
unset(BLA_VENDOR)
endif()