summaryrefslogtreecommitdiff
path: root/CBLAS
diff options
context:
space:
mode:
authorHans Johnson <hans-johnson@uiowa.edu>2016-07-09 10:03:14 -0500
committerHans Johnson <hans-johnson@uiowa.edu>2016-07-09 10:05:33 -0500
commitb7486d8bb9d795b659480c94cd2bda945af4c80a (patch)
tree9cbd256ff53c8590c7ade90087e7650fdd1a2d85 /CBLAS
parentd177ffb1c16aaa08fb146a665add95d621fb2325 (diff)
downloadlapack-b7486d8bb9d795b659480c94cd2bda945af4c80a.tar.gz
lapack-b7486d8bb9d795b659480c94cd2bda945af4c80a.tar.bz2
lapack-b7486d8bb9d795b659480c94cd2bda945af4c80a.zip
BUG: path failure for find_package config files
CMake Error at src/lapack-install/lib64/cmake/lapacke-3.6.1/lapacke-config.cmake:13 (include): include could not find load file: src/lapack-install/lib64/cmake/lapacke-3.6.1/lapacke-targets.cmake Call Stack (most recent call first): CMakeLists.txt:26 (find_package) -- src/lapack-install/lib64/cmake/lapacke-3.6.1 -- Configuring incomplete, errors occurred! See also "src/lapackTest-bld/CMakeFiles/CMakeOutput.log". The file was installed in: src/lapack-install/lib/cmake/lapacke-3.6.1/lapacke-targets.cmake ^^ - Missing lib suffix of 64
Diffstat (limited to 'CBLAS')
-rw-r--r--CBLAS/CMakeLists.txt6
-rw-r--r--CBLAS/cmake/cblas-config-install.cmake.in4
2 files changed, 5 insertions, 5 deletions
diff --git a/CBLAS/CMakeLists.txt b/CBLAS/CMakeLists.txt
index 5dac7334..9d3aadd7 100644
--- a/CBLAS/CMakeLists.txt
+++ b/CBLAS/CMakeLists.txt
@@ -45,7 +45,7 @@ endif(NOT BLAS_FOUND)
set(_cblas_config_install_guard_target "")
if(ALL_TARGETS)
install(EXPORT cblas-targets
- DESTINATION lib/cmake/cblas-${LAPACK_VERSION})
+ DESTINATION ${LIBRARY_DIR}/cmake/cblas-${LAPACK_VERSION})
# Choose one of the cblas targets to use as a guard for
# cblas-config.cmake to load targets from the install tree.
list(GET ALL_TARGETS 0 _cblas_config_install_guard_target)
@@ -78,9 +78,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cblas-config-install.cmake.in
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/cblas-config.cmake
${LAPACK_BINARY_DIR}/cblas-config-version.cmake
- DESTINATION lib/cmake/cblas-${LAPACK_VERSION}
+ DESTINATION ${LIBRARY_DIR}/cmake/cblas-${LAPACK_VERSION}
)
#install(EXPORT cblas-targets
-# DESTINATION lib/cmake/cblas-${LAPACK_VERSION})
+# DESTINATION ${LIBRARY_DIR}/cmake/cblas-${LAPACK_VERSION})
diff --git a/CBLAS/cmake/cblas-config-install.cmake.in b/CBLAS/cmake/cblas-config-install.cmake.in
index 3a21ef95..a5e2183e 100644
--- a/CBLAS/cmake/cblas-config-install.cmake.in
+++ b/CBLAS/cmake/cblas-config-install.cmake.in
@@ -1,11 +1,11 @@
-# Compute locations from <prefix>/lib/cmake/lapacke-<v>/<self>.cmake
+# Compute locations from <prefix>/@{LIBRARY_DIR@/cmake/lapacke-<v>/<self>.cmake
get_filename_component(_CBLAS_SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_CBLAS_PREFIX "${_CBLAS_SELF_DIR}" PATH)
get_filename_component(_CBLAS_PREFIX "${_CBLAS_PREFIX}" PATH)
get_filename_component(_CBLAS_PREFIX "${_CBLAS_PREFIX}" PATH)
# Load the LAPACK package with which we were built.
-set(LAPACK_DIR "${_CBLAS_PREFIX}/lib/cmake/lapack-@LAPACK_VERSION@")
+set(LAPACK_DIR "${_CBLAS_PREFIX}/@{LIBRARY_DIR@/cmake/lapack-@LAPACK_VERSION@")
find_package(LAPACK NO_MODULE)
# Load lapacke targets from the install tree.