Skip to content

Commit

Permalink
BTF: Avoid overlinking
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Oct 31, 2023
1 parent 982b379 commit d5a7b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions BTF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,11 @@ endif ( )
#-------------------------------------------------------------------------------

# SuiteSparseConfig:
target_link_libraries ( BTF PRIVATE SuiteSparse::SuiteSparseConfig )
target_include_directories ( BTF PUBLIC
"$<TARGET_PROPERTY:SuiteSparse::SuiteSparseConfig,INTERFACE_INCLUDE_DIRECTORIES>" )
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
"$<TARGET_PROPERTY:SuiteSparse::SuiteSparseConfig,INTERFACE_INCLUDE_DIRECTORIES>" )
endif ( )

# libm:
Expand Down
1 change: 0 additions & 1 deletion BTF/Config/BTF.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit d5a7b10

Please sign in to comment.