You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1014 B
26 lines
1014 B
# Compute locations from <prefix>/@{LIBRARY_DIR@/cmake/lapacke-<v>/<self>.cmake
|
|
get_filename_component(_LAPACKE_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component(_LAPACKE_PREFIX "${_LAPACKE_SELF_DIR}" PATH)
|
|
get_filename_component(_LAPACKE_PREFIX "${_LAPACKE_PREFIX}" PATH)
|
|
get_filename_component(_LAPACKE_PREFIX "${_LAPACKE_PREFIX}" PATH)
|
|
|
|
# Load the LAPACK package with which we were built.
|
|
set(LAPACK_DIR "${_LAPACKE_PREFIX}/@CMAKE_INSTALL_LIBDIR@/cmake/@LAPACKLIB@-@LAPACK_VERSION@")
|
|
find_package(LAPACK NO_MODULE)
|
|
|
|
# Load lapacke targets from the install tree.
|
|
if(NOT TARGET @LAPACKELIB@)
|
|
include(${_LAPACKE_SELF_DIR}/@LAPACKELIB@-targets.cmake)
|
|
endif()
|
|
|
|
# Hint for project building against lapack
|
|
set(LAPACKE_Fortran_COMPILER_ID ${LAPACK_Fortran_COMPILER_ID})
|
|
|
|
# Report lapacke header search locations.
|
|
set(LAPACKE_INCLUDE_DIRS ${_LAPACKE_PREFIX}/include)
|
|
|
|
# Report lapacke libraries.
|
|
set(LAPACKE_LIBRARIES @LAPACKELIB@ ${LAPACK_LIBRARIES})
|
|
|
|
unset(_LAPACKE_PREFIX)
|
|
unset(_LAPACKE_SELF_DIR)
|
|
|