From 6b2f6561e4d179b06d69bb8bf88f7e8131e3ded3 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Tue, 5 Jul 2016 15:19:42 -0500 Subject: BUG: Fix pathing to include files During building of external packages, only the build tree or install tree files should be used (the source tree may not be available from the binary package). Set to use the build tree locations for the configuration files. --- CBLAS/cmake/cblas-config-build.cmake.in | 6 +++--- LAPACKE/cmake/lapacke-config-build.cmake.in | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CBLAS/cmake/cblas-config-build.cmake.in b/CBLAS/cmake/cblas-config-build.cmake.in index 5449c12b..3747f041 100644 --- a/CBLAS/cmake/cblas-config-build.cmake.in +++ b/CBLAS/cmake/cblas-config-build.cmake.in @@ -7,8 +7,8 @@ if(NOT TARGET lapacke) include("@LAPACK_BINARY_DIR@/lapack-targets.cmake") endif() -# Report lapacke header search locations. -set(CBLAS_INCLUDE_DIRS "@LAPACK_SOURCE_DIR@/cblas/include") +# Report cblas header search locations from build tree. +set(CBLAS_INCLUDE_DIRS "@LAPACK_BINARY_DIR@/include") -# Report lapacke libraries. +# Report cblas libraries. set(CBLAS_LIBRARIES cblas) diff --git a/LAPACKE/cmake/lapacke-config-build.cmake.in b/LAPACKE/cmake/lapacke-config-build.cmake.in index eaf71f81..6900f453 100644 --- a/LAPACKE/cmake/lapacke-config-build.cmake.in +++ b/LAPACKE/cmake/lapacke-config-build.cmake.in @@ -7,8 +7,8 @@ if(NOT TARGET lapacke) include("@LAPACK_BINARY_DIR@/lapack-targets.cmake") endif() -# Report lapacke header search locations. -set(LAPACKE_INCLUDE_DIRS "@LAPACK_SOURCE_DIR@/lapacke/include") +# Report lapacke header search locations from build tree. +set(LAPACKE_INCLUDE_DIRS "@LAPACK_BINARY_DIR@/include") # Report lapacke libraries. set(LAPACKE_LIBRARIES lapacke) -- cgit v1.2.3