From d5a7b102fb3d82cc199d1ef4398239221d5068e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Tue, 31 Oct 2023 19:14:57 +0100 Subject: [PATCH] BTF: Avoid overlinking --- BTF/CMakeLists.txt | 8 ++------ BTF/Config/BTF.pc.in | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/BTF/CMakeLists.txt b/BTF/CMakeLists.txt index fdb2ebf76..c73b273a4 100644 --- a/BTF/CMakeLists.txt +++ b/BTF/CMakeLists.txt @@ -113,15 +113,11 @@ endif ( ) #------------------------------------------------------------------------------- # SuiteSparseConfig: -target_link_libraries ( BTF PRIVATE SuiteSparse::SuiteSparseConfig ) target_include_directories ( BTF PUBLIC "$" ) if ( NOT NSTATIC ) - if ( TARGET SuiteSparse::SuiteSparseConfig_static ) - target_link_libraries ( BTF_static PUBLIC SuiteSparse::SuiteSparseConfig_static ) - else ( ) - target_link_libraries ( BTF_static PUBLIC SuiteSparse::SuiteSparseConfig ) - endif ( ) + target_include_directories ( BTF_static PUBLIC + "$" ) endif ( ) # libm: diff --git a/BTF/Config/BTF.pc.in b/BTF/Config/BTF.pc.in index 104334f04..27d5cec87 100644 --- a/BTF/Config/BTF.pc.in +++ b/BTF/Config/BTF.pc.in @@ -11,7 +11,6 @@ Name: BTF URL: https://github.com/DrTimothyAldenDavis/SuiteSparse Description: Software package for permuting a matrix into block upper triangular form in SuiteSparse Version: @BTF_VERSION_MAJOR@.@BTF_VERSION_MINOR@.@BTF_VERSION_SUB@ -Requires.private: SuiteSparse_config Libs: -L${libdir} -lbtf Libs.private: @BTF_STATIC_LIBS@ Cflags: -I${includedir}