Skip to content

Commit

Permalink
Merge pull request #664 from mmuetzel/cmake
Browse files Browse the repository at this point in the history
KLU: Check for dependencies before including target file
  • Loading branch information
DrTimothyAldenDavis authored Dec 30, 2023
2 parents 1c95f6e + bd14c4d commit 7e6a8dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions KLU/Config/KLUConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ set ( KLU_VERSION_MINOR @KLU_VERSION_MINOR@ )
set ( KLU_VERSION_PATCH @KLU_VERSION_SUB@ )
set ( KLU_VERSION "@KLU_VERSION_MAJOR@.@KLU_VERSION_MINOR@.@KLU_VERSION_SUB@" )

include ( ${CMAKE_CURRENT_LIST_DIR}/KLUTargets.cmake )

# Check for dependent targets
include ( CMakeFindDependencyMacro )

Expand Down Expand Up @@ -103,6 +101,9 @@ if ( NOT SuiteSparse_config_FOUND OR NOT BTF_FOUND OR NOT AMD_FOUND OR NOT COLAM
endif ( )


# Import target
include ( ${CMAKE_CURRENT_LIST_DIR}/KLUTargets.cmake )

# The following is only for backward compatibility with FindKLU.

set ( _target_shared SuiteSparse::KLU )
Expand Down
2 changes: 2 additions & 0 deletions SuiteSparse_config/Config/SuiteSparse_configConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ if ( NOT _dependencies_found )
endif ( )


# Import target
include ( ${CMAKE_CURRENT_LIST_DIR}/SuiteSparse_configTargets.cmake )

if ( @SUITESPARSE_HAS_OPENMP@ )
Expand Down Expand Up @@ -80,6 +81,7 @@ if ( @SUITESPARSE_HAS_OPENMP@ )
endif ( )
endif ( )


# The following is only for backward compatibility with FindSuiteSparse_config.

set ( _target_shared SuiteSparse::SuiteSparseConfig )
Expand Down
2 changes: 2 additions & 0 deletions UMFPACK/Config/UMFPACKConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ if ( NOT SuiteSparse_config_FOUND OR NOT AMD_FOUND
return ( )
endif ( )


# Import target
include ( ${CMAKE_CURRENT_LIST_DIR}/UMFPACKTargets.cmake )

# The following is only for backward compatibility with FindUMFPACK.
Expand Down

0 comments on commit 7e6a8dd

Please sign in to comment.