Skip to content

Commit

Permalink
Merge pull request #487 from mmuetzel/paru
Browse files Browse the repository at this point in the history
ParU: Avoid overlinking
  • Loading branch information
DrTimothyAldenDavis authored Nov 1, 2023
2 parents f310c01 + 1d5e7e5 commit 88bfdce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions ParU/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,11 @@ if ( NOT NSTATIC )
endif ( )

# cholmod:
target_link_libraries ( ParU PRIVATE SuiteSparse::CHOLMOD )
target_include_directories ( ParU PUBLIC
"$<TARGET_PROPERTY:SuiteSparse::CHOLMOD,INTERFACE_INCLUDE_DIRECTORIES>" )
if ( NOT NSTATIC )
if ( TARGET SuiteSparse::CHOLMOD_static )
target_link_libraries ( ParU_static PUBLIC SuiteSparse::CHOLMOD_static )
else ( )
target_link_libraries ( ParU_static PUBLIC SuiteSparse::CHOLMOD )
endif ( )
target_include_directories ( ParU_static PUBLIC
"$<TARGET_PROPERTY:SuiteSparse::CHOLMOD,INTERFACE_INCLUDE_DIRECTORIES>" )
endif ( )

#-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion ParU/Config/ParU.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name: ParU
URL: https://github.com/DrTimothyAldenDavis/SuiteSparse
Description: Routines for solving sparse linear system via parallel multifrontal LU factorization algorithms in SuiteSparse
Version: @PARU_VERSION_MAJOR@.@PARU_VERSION_MINOR@.@PARU_VERSION_UPDATE@
Requires.private: SuiteSparse_config CHOLMOD UMFPACK
Requires.private: SuiteSparse_config UMFPACK
Libs: -L${libdir} -lparu
Libs.private: @PARU_STATIC_LIBS@
Cflags: -I${includedir}

0 comments on commit 88bfdce

Please sign in to comment.