Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (35 sloc)
1.29 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (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 LAPACKE. | |
# | |
# Variables defined:: | |
# | |
# LAPACKE_FOUND - describe me, uncached | |
# LAPACKE_LIBRARIES - describe me, uncached | |
# LAPACKE_INCLUDE_DIR - describe me, uncached | |
# | |
# autocmake.yml configuration:: | |
# | |
# url_root: https://github.com/dev-cafe/autocmake/raw/master/ | |
# docopt: "--lapacke Find and link to LAPACKE [default: False]." | |
# define: "'-DENABLE_LAPACKE={0}'.format(arguments['--lapacke'])" | |
# fetch: | |
# - "%(url_root)modules/find/find_libraries.cmake" | |
# - "%(url_root)modules/find/find_include_files.cmake" | |
option(ENABLE_LAPACKE "Find and link to LAPACKE" OFF) | |
if(ENABLE_LAPACKE) | |
include(${CMAKE_CURRENT_LIST_DIR}/find_libraries.cmake) | |
include(${CMAKE_CURRENT_LIST_DIR}/find_include_files.cmake) | |
set(LAPACKE_FOUND FALSE) | |
set(LAPACKE_LIBRARIES "NOTFOUND") | |
set(LAPACKE_INCLUDE_DIR "NOTFOUND") | |
_find_library(lapacke LAPACKE_dgesv LAPACKE_LIBRARIES) | |
_find_include_dir(lapacke.h /usr LAPACKE_INCLUDE_DIR) | |
if(NOT "${LAPACKE_LIBRARIES}" MATCHES "NOTFOUND") | |
if(NOT "${LAPACKE_INCLUDE_DIR}" MATCHES "NOTFOUND") | |
set(LAPACKE_FOUND TRUE) | |
endif() | |
endif() | |
endif() |