Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (35 sloc) 1.37 KB
# (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 ACCELERATE.
#
# Variables defined::
#
# ACCELERATE_FOUND - describe me, uncached
# ACCELERATE_LIBRARIES - describe me, uncached
# ACCELERATE_INCLUDE_DIR - describe me, uncached
#
# autocmake.yml configuration::
#
# url_root: https://github.com/dev-cafe/autocmake/raw/master/
# docopt: "--accelerate Find and link to ACCELERATE [default: False]."
# define: "'-DENABLE_ACCELERATE={0}'.format(arguments['--accelerate'])"
# fetch:
# - "%(url_root)modules/find/find_libraries.cmake"
# - "%(url_root)modules/find/find_include_files.cmake"
option(ENABLE_ACCELERATE "Find and link to ACCELERATE" OFF)
if(ENABLE_ACCELERATE)
include(${CMAKE_CURRENT_LIST_DIR}/../find/find_libraries.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/../find/find_include_files.cmake)
set(ACCELERATE_FOUND FALSE)
set(ACCELERATE_LIBRARIES "NOTFOUND")
set(ACCELERATE_INCLUDE_DIR "NOTFOUND")
_find_library(Accelerate cblas_dgemm ACCELERATE_LIBRARIES)
_find_include_dir(Accelerate.h /usr ACCELERATE_INCLUDE_DIR)
if(NOT "${ACCELERATE_LIBRARIES}" MATCHES "NOTFOUND")
if(NOT "${ACCELERATE_INCLUDE_DIR}" MATCHES "NOTFOUND")
set(ACCELERATE_FOUND TRUE)
endif()
endif()
endif()
You can’t perform that action at this time.