From 83eedac613b461830c7221530db4aee89400dbdb Mon Sep 17 00:00:00 2001 From: Rocco Meli Date: Fri, 9 Feb 2024 17:33:44 +0100 Subject: [PATCH 1/2] targets --- cmake/template/DLAFConfig.cmake.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/template/DLAFConfig.cmake.in b/cmake/template/DLAFConfig.cmake.in index ef33e5599a..b63c3ca31d 100644 --- a/cmake/template/DLAFConfig.cmake.in +++ b/cmake/template/DLAFConfig.cmake.in @@ -84,10 +84,12 @@ elseif(DLAF_WITH_MKL_LEGACY) else() set(LAPACK_LIBRARY "@LAPACK_LIBRARY@") find_dependency(LAPACK) + add_library(DLAF::LAPACK INTERFACE IMPORTED GLOBAL) if(DLAF_WITH_SCALAPACK) set(SCALAPACK_LIBRARY "@SCALAPACK_LIBRARY@") find_dependency(SCALAPACK) + add_library(DLAF::SCALAPACK INTERFACE IMPORTED GLOBAL) endif() endif() From 8c0bf9f5c279640621256a7d7f5fce03ff385fd0 Mon Sep 17 00:00:00 2001 From: Rocco Meli Date: Fri, 9 Feb 2024 18:04:03 +0100 Subject: [PATCH 2/2] test --- cmake/template/DLAFConfig.cmake.in | 1 - 1 file changed, 1 deletion(-) diff --git a/cmake/template/DLAFConfig.cmake.in b/cmake/template/DLAFConfig.cmake.in index b63c3ca31d..8c724ef809 100644 --- a/cmake/template/DLAFConfig.cmake.in +++ b/cmake/template/DLAFConfig.cmake.in @@ -84,7 +84,6 @@ elseif(DLAF_WITH_MKL_LEGACY) else() set(LAPACK_LIBRARY "@LAPACK_LIBRARY@") find_dependency(LAPACK) - add_library(DLAF::LAPACK INTERFACE IMPORTED GLOBAL) if(DLAF_WITH_SCALAPACK) set(SCALAPACK_LIBRARY "@SCALAPACK_LIBRARY@")