| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # AMD, Copyright (c) 1996-2023, Timothy A. Davis. | ||
| # All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| Name: AMD | ||
| URL: https://github.com/DrTimothyAldenDavis/SuiteSparse | ||
| Description: Routines for permuting sparse matrices prior to factorization in SuiteSparse | ||
| Version: @AMD_VERSION_MAJOR@.@AMD_VERSION_MINOR@.@AMD_VERSION_SUB@ | ||
| Requires.private: SuiteSparse_config | ||
| Libs: -L${libdir} -lamd | ||
| Libs.private: @AMD_STATIC_LIBS@ | ||
| Cflags: -I${includedir} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # SuiteSparse/AMD/cmake_modules/AMDConfig.cmake | ||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # The following copyright and license applies to just this file only, not to | ||
| # the library itself: | ||
| # AMDConfig.cmake, Copyright (c) 2023, Timothy A. Davis. All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-clause | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # Finds the AMD include file and compiled library. | ||
| # The following targets are defined: | ||
| # SuiteSparse::AMD - for the shared library (if available) | ||
| # SuiteSparse::AMD_static - for the static library (if available) | ||
|
|
||
| # For backward compatibility the following variables are set: | ||
|
|
||
| # AMD_INCLUDE_DIR - where to find amd.h | ||
| # AMD_LIBRARY - dynamic AMD library | ||
| # AMD_STATIC - static AMD library | ||
| # AMD_LIBRARIES - libraries when using AMD | ||
| # AMD_FOUND - true if AMD found | ||
|
|
||
| # Set ``CMAKE_MODULE_PATH`` to the parent folder where this module file is | ||
| # installed. | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| set ( AMD_DATE "@AMD_DATE@" ) | ||
| set ( AMD_VERSION_MAJOR @AMD_VERSION_MAJOR@ ) | ||
| set ( AMD_VERSION_MINOR @AMD_VERSION_MINOR@ ) | ||
| set ( AMD_VERSION_PATCH @AMD_VERSION_SUB@ ) | ||
| set ( AMD_VERSION "@AMD_VERSION_MAJOR@.@AMD_VERSION_MINOR@.@AMD_VERSION_SUB@" ) | ||
|
|
||
| include ( ${CMAKE_CURRENT_LIST_DIR}/AMDTargets.cmake ) | ||
|
|
||
| # The following is only for backward compatibility with FindAMD. | ||
|
|
||
| set ( _target_shared SuiteSparse::AMD ) | ||
| set ( _target_static SuiteSparse::AMD_static ) | ||
| set ( _var_prefix "AMD" ) | ||
|
|
||
| get_target_property ( ${_var_prefix}_INCLUDE_DIR ${_target_shared} INTERFACE_INCLUDE_DIRECTORIES ) | ||
| if ( ${_var_prefix}_INCLUDE_DIR ) | ||
| # First item in SuiteSparse targets contains the "main" header directory. | ||
| list ( GET ${_var_prefix}_INCLUDE_DIR 0 ${_var_prefix}_INCLUDE_DIR ) | ||
| endif ( ) | ||
| get_target_property ( ${_var_prefix}_LIBRARY ${_target_shared} IMPORTED_IMPLIB ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} IMPORTED_LOCATION ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} ) | ||
| get_target_property ( ${_var_prefix}_STATIC ${_target_static} IMPORTED_LOCATION ) | ||
| endif ( ) | ||
|
|
||
| # Check for most common build types | ||
| set ( _config_types "Debug" "Release" "RelWithDebInfo" "MinSizeRel" ) | ||
|
|
||
| get_property ( _isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG ) | ||
| if ( _isMultiConfig ) | ||
| # For multi-configuration generators (e.g., Visual Studio), prefer those | ||
| # configurations. | ||
| list ( PREPEND _config_types ${CMAKE_CONFIGURATION_TYPES} ) | ||
| else ( ) | ||
| # For single-configuration generators, prefer the current configuration. | ||
| list ( PREPEND _config_types ${CMAKE_BUILD_TYPE} ) | ||
| endif ( ) | ||
|
|
||
| list ( REMOVE_DUPLICATES _config_types ) | ||
|
|
||
| foreach ( _config ${_config_types} ) | ||
| string ( TOUPPER ${_config} _uc_config ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_IMPLIB_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} AND NOT ${_var_prefix}_STATIC ) | ||
| get_target_property ( _library_chk ${_target_static} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_STATIC ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| endforeach ( ) | ||
|
|
||
| set ( AMD_LIBRARIES ${AMD_LIBRARY} ) | ||
|
|
||
| macro ( suitesparse_check_exist _var _files ) | ||
| # ignore generator expressions | ||
| string ( GENEX_STRIP "${_files}" _files2 ) | ||
|
|
||
| foreach ( _file ${_files2} ) | ||
| if ( NOT EXISTS "${_file}" ) | ||
| message ( FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist!" ) | ||
| endif ( ) | ||
| endforeach () | ||
| endmacro ( ) | ||
|
|
||
| suitesparse_check_exist ( AMD_INCLUDE_DIR ${AMD_INCLUDE_DIR} ) | ||
| suitesparse_check_exist ( AMD_LIBRARY ${AMD_LIBRARY} ) | ||
|
|
||
| message ( STATUS "AMD version: ${AMD_VERSION}" ) | ||
| message ( STATUS "AMD include: ${AMD_INCLUDE_DIR}") | ||
| message ( STATUS "AMD library: ${AMD_LIBRARY}") | ||
| message ( STATUS "AMD static: ${AMD_STATIC}") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| % version of SuiteSparse/AMD | ||
| \date{VERSION 3.2.0, Sept 8, 2023} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # BTF, Copyright (c) 2004-2023, Timothy A. Davis. | ||
| # All Rights Reserved. | ||
| # SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
|
||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| 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} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # SuiteSparse/BTF/cmake_modules/BTFConfig.cmake | ||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # The following copyright and license applies to just this file only, not to | ||
| # the library itself: | ||
| # BTFConfig.cmake, Copyright (c) 2023, Timothy A. Davis. All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-clause | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # Finds the BTF include file and compiled library. | ||
| # The following targets are defined: | ||
| # SuiteSparse::BTF - for the shared library (if available) | ||
| # SuiteSparse::BTF_static - for the static library (if available) | ||
|
|
||
| # For backward compatibility the following variables are set: | ||
|
|
||
| # BTF_INCLUDE_DIR - where to find btf.h | ||
| # BTF_LIBRARY - dynamic BTF library | ||
| # BTF_STATIC - static BTF library | ||
| # BTF_LIBRARIES - libraries when using BTF | ||
| # BTF_FOUND - true if BTF found | ||
|
|
||
| # Set ``CMAKE_MODULE_PATH`` to the parent folder where this module file is | ||
| # installed. | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| set ( BTF_DATE "@BTF_DATE@" ) | ||
| set ( BTF_VERSION_MAJOR @BTF_VERSION_MAJOR@ ) | ||
| set ( BTF_VERSION_MINOR @BTF_VERSION_MINOR@ ) | ||
| set ( BTF_VERSION_SUB @BTF_VERSION_SUB@ ) | ||
| set ( BTF_VERSION "@BTF_VERSION_MAJOR@.@BTF_VERSION_MINOR@.@BTF_VERSION_SUB@" ) | ||
|
|
||
| include ( ${CMAKE_CURRENT_LIST_DIR}/BTFTargets.cmake ) | ||
|
|
||
| # The following is only for backward compatibility with FindBTF. | ||
|
|
||
| set ( _target_shared SuiteSparse::BTF ) | ||
| set ( _target_static SuiteSparse::BTF_static ) | ||
| set ( _var_prefix "BTF" ) | ||
|
|
||
| get_target_property ( ${_var_prefix}_INCLUDE_DIR ${_target_shared} INTERFACE_INCLUDE_DIRECTORIES ) | ||
| if ( ${_var_prefix}_INCLUDE_DIR ) | ||
| # First item in SuiteSparse targets contains the "main" header directory. | ||
| list ( GET ${_var_prefix}_INCLUDE_DIR 0 ${_var_prefix}_INCLUDE_DIR ) | ||
| endif ( ) | ||
| get_target_property ( ${_var_prefix}_LIBRARY ${_target_shared} IMPORTED_IMPLIB ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} IMPORTED_LOCATION ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} ) | ||
| get_target_property ( ${_var_prefix}_STATIC ${_target_static} IMPORTED_LOCATION ) | ||
| endif ( ) | ||
|
|
||
| # Check for most common build types | ||
| set ( _config_types "Debug" "Release" "RelWithDebInfo" "MinSizeRel" ) | ||
|
|
||
| get_property ( _isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG ) | ||
| if ( _isMultiConfig ) | ||
| # For multi-configuration generators (e.g., Visual Studio), prefer those | ||
| # configurations. | ||
| list ( PREPEND _config_types ${CMAKE_CONFIGURATION_TYPES} ) | ||
| else ( ) | ||
| # For single-configuration generators, prefer the current configuration. | ||
| list ( PREPEND _config_types ${CMAKE_BUILD_TYPE} ) | ||
| endif ( ) | ||
|
|
||
| list ( REMOVE_DUPLICATES _config_types ) | ||
|
|
||
| foreach ( _config ${_config_types} ) | ||
| string ( TOUPPER ${_config} _uc_config ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_IMPLIB_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} AND NOT ${_var_prefix}_STATIC ) | ||
| get_target_property ( _library_chk ${_target_static} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_STATIC ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| endforeach ( ) | ||
|
|
||
| set ( BTF_LIBRARIES ${BTF_LIBRARY} ) | ||
|
|
||
| macro ( suitesparse_check_exist _var _files ) | ||
| # ignore generator expressions | ||
| string ( GENEX_STRIP "${_files}" _files2 ) | ||
|
|
||
| foreach ( _file ${_files2} ) | ||
| if ( NOT EXISTS "${_file}" ) | ||
| message ( FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist!" ) | ||
| endif ( ) | ||
| endforeach () | ||
| endmacro ( ) | ||
|
|
||
| suitesparse_check_exist ( BTF_INCLUDE_DIR ${BTF_INCLUDE_DIR} ) | ||
| suitesparse_check_exist ( BTF_LIBRARY ${BTF_LIBRARY} ) | ||
|
|
||
| message ( STATUS "BTF version: ${BTF_VERSION}" ) | ||
| message ( STATUS "BTF include: ${BTF_INCLUDE_DIR}" ) | ||
| message ( STATUS "BTF library: ${BTF_LIBRARY}" ) | ||
| message ( STATUS "BTF static: ${BTF_STATIC}" ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # CAMD, Copyright (c) 2007-2023, Timothy A. Davis. | ||
| # All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| Name: CAMD | ||
| URL: https://github.com/DrTimothyAldenDavis/SuiteSparse | ||
| Description: Routines for permuting sparse matrices prior to factorization in SuiteSparse | ||
| Version: @CAMD_VERSION_MAJOR@.@CAMD_VERSION_MINOR@.@CAMD_VERSION_SUB@ | ||
| Requires.private: SuiteSparse_config | ||
| Libs: -L${libdir} -lcamd | ||
| Libs.private: @CAMD_STATIC_LIBS@ | ||
| Cflags: -I${includedir} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # SuiteSparse/CAMD/cmake_modules/CAMDConfig.cmake | ||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # The following copyright and license applies to just this file only, not to | ||
| # the library itself: | ||
| # CAMDConfig.cmake, Copyright (c) 2023, Timothy A. Davis. All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-clause | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # Finds the CAMD include file and compiled library. | ||
| # The following targets are defined: | ||
| # SuiteSparse::CAMD - for the shared library (if available) | ||
| # SuiteSparse::CAMD_static - for the static library (if available) | ||
|
|
||
| # For backward compatibility the following variables are set: | ||
|
|
||
| # CAMD_INCLUDE_DIR - where to find camd.h | ||
| # CAMD_LIBRARY - dynamic CAMD library | ||
| # CAMD_STATIC - static CAMD library | ||
| # CAMD_LIBRARIES - libraries when using CAMD | ||
| # CAMD_FOUND - true if CAMD found | ||
|
|
||
| # Set ``CMAKE_MODULE_PATH`` to the parent folder where this module file is | ||
| # installed. | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| set ( CAMD_DATE "@CAMD_DATE@" ) | ||
| set ( CAMD_VERSION_MAJOR @CAMD_VERSION_MAJOR@ ) | ||
| set ( CAMD_VERSION_MINOR @CAMD_VERSION_MINOR@ ) | ||
| set ( CAMD_VERSION_PATCH @CAMD_VERSION_SUB@ ) | ||
| set ( CAMD_VERSION "@CAMD_VERSION_MAJOR@.@CAMD_VERSION_MINOR@.@CAMD_VERSION_SUB@" ) | ||
|
|
||
| include ( ${CMAKE_CURRENT_LIST_DIR}/CAMDTargets.cmake ) | ||
|
|
||
| # The following is only for backward compatibility with FindCAMD. | ||
|
|
||
| set ( _target_shared SuiteSparse::CAMD ) | ||
| set ( _target_static SuiteSparse::CAMD_static ) | ||
| set ( _var_prefix "CAMD" ) | ||
|
|
||
| get_target_property ( ${_var_prefix}_INCLUDE_DIR ${_target_shared} INTERFACE_INCLUDE_DIRECTORIES ) | ||
| if ( ${_var_prefix}_INCLUDE_DIR ) | ||
| # First item in SuiteSparse targets contains the "main" header directory. | ||
| list ( GET ${_var_prefix}_INCLUDE_DIR 0 ${_var_prefix}_INCLUDE_DIR ) | ||
| endif ( ) | ||
| get_target_property ( ${_var_prefix}_LIBRARY ${_target_shared} IMPORTED_IMPLIB ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} IMPORTED_LOCATION ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} ) | ||
| get_target_property ( ${_var_prefix}_STATIC ${_target_static} IMPORTED_LOCATION ) | ||
| endif ( ) | ||
|
|
||
| # Check for most common build types | ||
| set ( _config_types "Debug" "Release" "RelWithDebInfo" "MinSizeRel" ) | ||
|
|
||
| get_property ( _isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG ) | ||
| if ( _isMultiConfig ) | ||
| # For multi-configuration generators (e.g., Visual Studio), prefer those | ||
| # configurations. | ||
| list ( PREPEND _config_types ${CMAKE_CONFIGURATION_TYPES} ) | ||
| else ( ) | ||
| # For single-configuration generators, prefer the current configuration. | ||
| list ( PREPEND _config_types ${CMAKE_BUILD_TYPE} ) | ||
| endif ( ) | ||
|
|
||
| list ( REMOVE_DUPLICATES _config_types ) | ||
|
|
||
| foreach ( _config ${_config_types} ) | ||
| string ( TOUPPER ${_config} _uc_config ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_IMPLIB_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} AND NOT ${_var_prefix}_STATIC ) | ||
| get_target_property ( _library_chk ${_target_static} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_STATIC ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| endforeach ( ) | ||
|
|
||
| set ( AMD_LIBRARIES ${CAMD_LIBRARY} ) | ||
|
|
||
| macro ( suitesparse_check_exist _var _files ) | ||
| # ignore generator expressions | ||
| string ( GENEX_STRIP "${_files}" _files2 ) | ||
|
|
||
| foreach ( _file ${_files2} ) | ||
| if ( NOT EXISTS "${_file}" ) | ||
| message ( FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist!" ) | ||
| endif ( ) | ||
| endforeach () | ||
| endmacro ( ) | ||
|
|
||
| suitesparse_check_exist ( CAMD_INCLUDE_DIR ${CAMD_INCLUDE_DIR} ) | ||
| suitesparse_check_exist ( CAMD_LIBRARY ${CAMD_LIBRARY} ) | ||
|
|
||
| message ( STATUS "CAMD version: ${CAMD_VERSION}" ) | ||
| message ( STATUS "CAMD include: ${CAMD_INCLUDE_DIR}" ) | ||
| message ( STATUS "CAMD library: ${CAMD_LIBRARY}" ) | ||
| message ( STATUS "CAMD static: ${CAMD_STATIC}" ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| % version of SuiteSparse/CAMD | ||
| \date{VERSION 3.2.0, Sept 8, 2023} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # CCOLAMD, Copyright (c) 2005-2023, Timothy A. Davis. | ||
| # All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| Name: CCOLAMD | ||
| URL: https://github.com/DrTimothyAldenDavis/SuiteSparse | ||
| Description: Routines for column approximate minimum degree ordering algorithm in SuiteSparse | ||
| Version: @CCOLAMD_VERSION_MAJOR@.@CCOLAMD_VERSION_MINOR@.@CCOLAMD_VERSION_SUB@ | ||
| Requires.private: SuiteSparse_config | ||
| Libs: -L${libdir} -lccolamd | ||
| Libs.private: @CCOLAMD_STATIC_LIBS@ | ||
| Cflags: -I${includedir} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # SuiteSparse/CCOLAMD/cmake_modules/CCOLAMDConfig.cmake | ||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # The following copyright and license applies to just this file only, not to | ||
| # the library itself: | ||
| # CCOLAMDConfig.cmake, Copyright (c) 2023, Timothy A. Davis. All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-clause | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # Finds the CCOLAMD include file and compiled library. | ||
| # The following targets are defined: | ||
| # SuiteSparse::CCOLAMD - for the shared library (if available) | ||
| # SuiteSparse::CCOLAMD_static - for the static library (if available) | ||
|
|
||
| # For backward compatibility the following variables are set: | ||
|
|
||
| # CCOLAMD_INCLUDE_DIR - where to find ccolamd.h | ||
| # CCOLAMD_LIBRARY - dynamic CCOLAMD library | ||
| # CCOLAMD_STATIC - static CCOLAMD library | ||
| # CCOLAMD_LIBRARIES - libraries when using CCOLAMD | ||
| # CCOLAMD_FOUND - true if CCOLAMD found | ||
|
|
||
| # Set ``CMAKE_MODULE_PATH`` to the parent folder where this module file is | ||
| # installed. | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| set ( CCOLAMD_DATE "@CCOLAMD_DATE@" ) | ||
| set ( CCOLAMD_VERSION_MAJOR @CCOLAMD_VERSION_MAJOR@ ) | ||
| set ( CCOLAMD_VERSION_MINOR @CCOLAMD_VERSION_MINOR@ ) | ||
| set ( CCOLAMD_VERSION_PATCH @CCOLAMD_VERSION_SUB@ ) | ||
| set ( CCOLAMD_VERSION "@CCOLAMD_VERSION_MAJOR@.@CCOLAMD_VERSION_MINOR@.@CCOLAMD_VERSION_SUB@" ) | ||
|
|
||
| include ( ${CMAKE_CURRENT_LIST_DIR}/CCOLAMDTargets.cmake ) | ||
|
|
||
| # The following is only for backward compatibility with FindCCOLAMD. | ||
|
|
||
| set ( _target_shared SuiteSparse::CCOLAMD ) | ||
| set ( _target_static SuiteSparse::CCOLAMD_static ) | ||
| set ( _var_prefix "CCOLAMD" ) | ||
|
|
||
| get_target_property ( ${_var_prefix}_INCLUDE_DIR ${_target_shared} INTERFACE_INCLUDE_DIRECTORIES ) | ||
| if ( ${_var_prefix}_INCLUDE_DIR ) | ||
| # First item in SuiteSparse targets contains the "main" header directory. | ||
| list ( GET ${_var_prefix}_INCLUDE_DIR 0 ${_var_prefix}_INCLUDE_DIR ) | ||
| endif ( ) | ||
| get_target_property ( ${_var_prefix}_LIBRARY ${_target_shared} IMPORTED_IMPLIB ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} IMPORTED_LOCATION ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} ) | ||
| get_target_property ( ${_var_prefix}_STATIC ${_target_static} IMPORTED_LOCATION ) | ||
| endif ( ) | ||
|
|
||
| # Check for most common build types | ||
| set ( _config_types "Debug" "Release" "RelWithDebInfo" "MinSizeRel" ) | ||
|
|
||
| get_property ( _isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG ) | ||
| if ( _isMultiConfig ) | ||
| # For multi-configuration generators (e.g., Visual Studio), prefer those | ||
| # configurations. | ||
| list ( PREPEND _config_types ${CMAKE_CONFIGURATION_TYPES} ) | ||
| else ( ) | ||
| # For single-configuration generators, prefer the current configuration. | ||
| list ( PREPEND _config_types ${CMAKE_BUILD_TYPE} ) | ||
| endif ( ) | ||
|
|
||
| list ( REMOVE_DUPLICATES _config_types ) | ||
|
|
||
| foreach ( _config ${_config_types} ) | ||
| string ( TOUPPER ${_config} _uc_config ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_IMPLIB_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} AND NOT ${_var_prefix}_STATIC ) | ||
| get_target_property ( _library_chk ${_target_static} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_STATIC ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| endforeach ( ) | ||
|
|
||
| set ( CCOLAMD_LIBRARIES ${CCOLAMD_LIBRARY} ) | ||
|
|
||
| macro ( suitesparse_check_exist _var _files ) | ||
| # ignore generator expressions | ||
| string ( GENEX_STRIP "${_files}" _files2 ) | ||
|
|
||
| foreach ( _file ${_files2} ) | ||
| if ( NOT EXISTS "${_file}" ) | ||
| message ( FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist!" ) | ||
| endif ( ) | ||
| endforeach () | ||
| endmacro ( ) | ||
|
|
||
| suitesparse_check_exist ( CCOLAMD_INCLUDE_DIR ${CCOLAMD_INCLUDE_DIR} ) | ||
| suitesparse_check_exist ( CCOLAMD_LIBRARY ${CCOLAMD_LIBRARY} ) | ||
|
|
||
| message ( STATUS "CCOLAMD version: ${CCOLAMD_VERSION}" ) | ||
| message ( STATUS "CCOLAMD include: ${CCOLAMD_INCLUDE_DIR}" ) | ||
| message ( STATUS "CCOLAMD library: ${CCOLAMD_LIBRARY}" ) | ||
| message ( STATUS "CCOLAMD static: ${CCOLAMD_STATIC}" ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # CHOLMOD, Copyright (c) 2005-2023, Timothy A. Davis. | ||
| # All Rights Reserved. | ||
| # SPDX-License-Identifier: LGPL-2.1-or-later AND GPL-2.0-or-later AND Apache-2.0 | ||
|
|
||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| # FIXME: Which flags do we need to statically link CUDA if needed? | ||
|
|
||
| Name: CHOLMOD | ||
| URL: https://github.com/DrTimothyAldenDavis/SuiteSparse | ||
| Description: Routines for factorizing sparse symmetric positive definite matrices in SuiteSparse | ||
| Version: @CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@ | ||
| Requires.private: SuiteSparse_config AMD COLAMD @CHOLMOD_STATIC_MODULES@ | ||
| Libs: -L${libdir} -lcholmod | ||
| Libs.private: @CHOLMOD_STATIC_LIBS@ | ||
| Cflags: -I${includedir} @CHOLMOD_CFLAGS@ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,151 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # SuiteSparse/CHOLMOD/cmake_modules/CHOLMODConfig.cmake | ||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # The following copyright and license applies to just this file only, not to | ||
| # the library itself: | ||
| # CHOLMODConfig.cmake, Copyright (c) 2023, Timothy A. Davis. All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-clause | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # Finds the CHOLMOD include file and compiled library. | ||
| # The following targets are defined: | ||
| # SuiteSparse::CHOLMOD - for the shared library (if available) | ||
| # SuiteSparse::CHOLMOD_static - for the static library (if available) | ||
|
|
||
| # For backward compatibility the following variables are set: | ||
|
|
||
| # CHOLMOD_INCLUDE_DIR - where to find cholmod.h | ||
| # CHOLMOD_LIBRARY - compiled CHOLMOD library | ||
| # CHOLMOD_LIBRARIES - libraries when using CHOLMOD | ||
| # CHOLMOD_FOUND - true if CHOLMOD found | ||
|
|
||
| # Set ``CMAKE_MODULE_PATH`` to the parent folder where this module file is | ||
| # installed. | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| set ( CHOLMOD_DATE "@CHOLMOD_DATE@" ) | ||
| set ( CHOLMOD_VERSION_MAJOR @CHOLMOD_VERSION_MAJOR@ ) | ||
| set ( CHOLMOD_VERSION_MINOR @CHOLMOD_VERSION_MINOR@ ) | ||
| set ( CHOLMOD_VERSION_PATCH @CHOLMOD_VERSION_SUB@ ) | ||
| set ( CHOLMOD_VERSION "@CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@" ) | ||
|
|
||
| # Check for dependent targets | ||
| include ( CMakeFindDependencyMacro ) | ||
| set ( _dependencies_found ON ) | ||
|
|
||
| if ( @SUITESPARSE_CUDA@ ) | ||
| # Look for imported targets of additional dependency if CHOLMOD was built with CUDA | ||
|
|
||
| if ( NOT CHOLMOD_CUDA_FOUND ) | ||
| if ( @SUITESPARSE_IN_BUILD_TREE@ ) | ||
| # First check in a common build tree | ||
| find_dependency ( CHOLMOD_CUDA @CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@ | ||
| PATHS ${CMAKE_SOURCE_DIR}/../CHOLMOD/build NO_DEFAULT_PATH ) | ||
| # Then, check in the currently active CMAKE_MODULE_PATH | ||
| if ( NOT CHOLMOD_CUDA_FOUND ) | ||
| find_dependency ( CHOLMOD_CUDA @CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@ ) | ||
| endif ( ) | ||
| else ( ) | ||
| find_dependency ( CHOLMOD_CUDA @CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@ ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT CHOLMOD_CUDA_FOUND ) | ||
| set ( _dependencies_found OFF ) | ||
| endif ( ) | ||
| endif ( ) | ||
|
|
||
| if ( NOT _dependencies_found ) | ||
| set ( CHOLMOD_FOUND OFF ) | ||
| return ( ) | ||
| endif ( ) | ||
|
|
||
| # Import target | ||
| include ( ${CMAKE_CURRENT_LIST_DIR}/CHOLMODTargets.cmake ) | ||
|
|
||
| # The following is only for backward compatibility with FindCHOLMOD. | ||
|
|
||
| set ( _target_shared SuiteSparse::CHOLMOD ) | ||
| set ( _target_static SuiteSparse::CHOLMOD_static ) | ||
| set ( _var_prefix "CHOLMOD" ) | ||
|
|
||
| get_target_property ( ${_var_prefix}_INCLUDE_DIR ${_target_shared} INTERFACE_INCLUDE_DIRECTORIES ) | ||
| if ( ${_var_prefix}_INCLUDE_DIR ) | ||
| # First item in SuiteSparse targets contains the "main" header directory. | ||
| list ( GET ${_var_prefix}_INCLUDE_DIR 0 ${_var_prefix}_INCLUDE_DIR ) | ||
| endif ( ) | ||
| get_target_property ( ${_var_prefix}_LIBRARY ${_target_shared} IMPORTED_IMPLIB ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} IMPORTED_LOCATION ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} ) | ||
| get_target_property ( ${_var_prefix}_STATIC ${_target_static} IMPORTED_LOCATION ) | ||
| endif ( ) | ||
|
|
||
| # Check for most common build types | ||
| set ( _config_types "Debug" "Release" "RelWithDebInfo" "MinSizeRel" ) | ||
|
|
||
| get_property ( _isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG ) | ||
| if ( _isMultiConfig ) | ||
| # For multi-configuration generators (e.g., Visual Studio), prefer those | ||
| # configurations. | ||
| list ( PREPEND _config_types ${CMAKE_CONFIGURATION_TYPES} ) | ||
| else ( ) | ||
| # For single-configuration generators, prefer the current configuration. | ||
| list ( PREPEND _config_types ${CMAKE_BUILD_TYPE} ) | ||
| endif ( ) | ||
|
|
||
| list ( REMOVE_DUPLICATES _config_types ) | ||
|
|
||
| foreach ( _config ${_config_types} ) | ||
| string ( TOUPPER ${_config} _uc_config ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_IMPLIB_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} AND NOT ${_var_prefix}_STATIC ) | ||
| get_target_property ( _library_chk ${_target_static} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_STATIC ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| endforeach ( ) | ||
|
|
||
| set ( CHOLMOD_LIBRARIES ${CHOLMOD_LIBRARY} ) | ||
|
|
||
| macro ( suitesparse_check_exist _var _files ) | ||
| # ignore generator expressions | ||
| string ( GENEX_STRIP "${_files}" _files2 ) | ||
|
|
||
| foreach ( _file ${_files2} ) | ||
| if ( NOT EXISTS "${_file}" ) | ||
| message ( FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist!" ) | ||
| endif ( ) | ||
| endforeach () | ||
| endmacro ( ) | ||
|
|
||
| suitesparse_check_exist ( CHOLMOD_INCLUDE_DIR ${CHOLMOD_INCLUDE_DIR} ) | ||
| suitesparse_check_exist ( CHOLMOD_LIBRARY ${CHOLMOD_LIBRARY} ) | ||
|
|
||
| message ( STATUS "CHOLMOD version: ${CHOLMOD_VERSION}" ) | ||
| message ( STATUS "CHOLMOD include: ${CHOLMOD_INCLUDE_DIR}" ) | ||
| message ( STATUS "CHOLMOD library: ${CHOLMOD_LIBRARY}" ) | ||
| message ( STATUS "CHOLMOD static: ${CHOLMOD_STATIC}" ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # CHOLMOD_CUDA, Copyright (c) 2005-2023, Timothy A. Davis. | ||
| # All Rights Reserved. | ||
| # SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| prefix=@prefix@ | ||
| exec_prefix=@exec_prefix@ | ||
| libdir=@libdir@ | ||
| includedir=@includedir@ | ||
|
|
||
| # FIXME: Which flags do we need for static linking? | ||
|
|
||
| Name: CHOLMOD_CUDA | ||
| URL: https://github.com/DrTimothyAldenDavis/SuiteSparse | ||
| Description: CHOLMOD/GPU module in SuiteSparse | ||
| Version: @CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@ | ||
| Libs: -L${libdir} -lcholmod_cuda | ||
| Cflags: -I${includedir} -DSUITESPARSE_CUDA |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| #------------------------------------------------------------------------------- | ||
| # SuiteSparse/CHOLMOD/cmake_modules/CHOLMOD_CUDAConfig.cmake | ||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # The following copyright and license applies to just this file only, not to | ||
| # the library itself: | ||
| # CHOLMOD_CUDAConfig.cmake, Copyright (c) 2023, Timothy A. Davis. All Rights Reserved. | ||
| # SPDX-License-Identifier: BSD-3-clause | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| # Finds the CHOLMOD_CUDA include file and compiled library. | ||
| # The following targets are defined: | ||
| # SuiteSparse::CHOLMOD_CUDA - for the shared library (if available) | ||
| # SuiteSparse::CHOLMOD_CUDA_static - for the static library (if available) | ||
|
|
||
| # For backward compatibility the following variables are set: | ||
|
|
||
| # CHOLMOD_CUDA_LIBRARY - dynamic CHOLMOD_CUDA library | ||
| # CHOLMOD_CUDA_STATIC - static CHOLMOD_CUDA library | ||
| # CHOLMOD_CUDA_LIBRARIES - libraries when using CHOLMOD_CUDA | ||
| # CHOLMOD_CUDA_FOUND - true if CHOLMOD_CUDA found | ||
|
|
||
| # Set ``CMAKE_MODULE_PATH`` to the parent folder where this module file is | ||
| # installed. | ||
|
|
||
| #------------------------------------------------------------------------------- | ||
|
|
||
| @PACKAGE_INIT@ | ||
|
|
||
| set ( CHOLMOD_CUDA_DATE "@CHOLMOD_DATE@" ) | ||
| set ( CHOLMOD_CUDA_VERSION_MAJOR @CHOLMOD_VERSION_MAJOR@ ) | ||
| set ( CHOLMOD_CUDA_VERSION_MINOR @CHOLMOD_VERSION_MINOR@ ) | ||
| set ( CHOLMOD_CUDA_VERSION_PATCH @CHOLMOD_VERSION_SUB@ ) | ||
| set ( CHOLMOD_CUDA_VERSION "@CHOLMOD_VERSION_MAJOR@.@CHOLMOD_VERSION_MINOR@.@CHOLMOD_VERSION_SUB@" ) | ||
|
|
||
| # Check for dependent targets | ||
| include ( CMakeFindDependencyMacro ) | ||
| set ( _dependencies_found ON ) | ||
|
|
||
| # Look for NVIDIA CUDA toolkit | ||
| if ( NOT CUDAToolkit_FOUND ) | ||
| find_dependency ( CUDAToolkit @CUDAToolkit_VERSION_MAJOR@ ) | ||
| if ( NOT CUDAToolkit_FOUND ) | ||
| set ( _dependencies_found OFF ) | ||
| endif ( ) | ||
| endif ( ) | ||
|
|
||
| if ( NOT _dependencies_found ) | ||
| set ( CHOLMOD_CUDA_FOUND OFF ) | ||
| return ( ) | ||
| endif ( ) | ||
|
|
||
| # Import target | ||
| include ( ${CMAKE_CURRENT_LIST_DIR}/CHOLMOD_CUDATargets.cmake ) | ||
|
|
||
| # The following is only for backward compatibility with FindCHOLMOD_CUDA. | ||
|
|
||
| set ( _target_shared SuiteSparse::CHOLMOD_CUDA ) | ||
| set ( _target_static SuiteSparse::CHOLMOD_CUDA_static ) | ||
| set ( _var_prefix "CHOLMOD_CUDA" ) | ||
|
|
||
| get_target_property ( ${_var_prefix}_INCLUDE_DIR ${_target_shared} INTERFACE_INCLUDE_DIRECTORIES ) | ||
| if ( ${_var_prefix}_INCLUDE_DIR ) | ||
| # First item in SuiteSparse targets contains the "main" header directory. | ||
| list ( GET ${_var_prefix}_INCLUDE_DIR 0 ${_var_prefix}_INCLUDE_DIR ) | ||
| endif ( ) | ||
| get_target_property ( ${_var_prefix}_LIBRARY ${_target_shared} IMPORTED_IMPLIB ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} IMPORTED_LOCATION ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} ) | ||
| get_target_property ( ${_var_prefix}_STATIC ${_target_static} IMPORTED_LOCATION ) | ||
| endif ( ) | ||
|
|
||
| # Check for most common build types | ||
| set ( _config_types "Debug" "Release" "RelWithDebInfo" "MinSizeRel" ) | ||
|
|
||
| get_property ( _isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG ) | ||
| if ( _isMultiConfig ) | ||
| # For multi-configuration generators (e.g., Visual Studio), prefer those | ||
| # configurations. | ||
| list ( PREPEND _config_types ${CMAKE_CONFIGURATION_TYPES} ) | ||
| else ( ) | ||
| # For single-configuration generators, prefer the current configuration. | ||
| list ( PREPEND _config_types ${CMAKE_BUILD_TYPE} ) | ||
| endif ( ) | ||
|
|
||
| list ( REMOVE_DUPLICATES _config_types ) | ||
|
|
||
| foreach ( _config ${_config_types} ) | ||
| string ( TOUPPER ${_config} _uc_config ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_IMPLIB_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( NOT ${_var_prefix}_LIBRARY ) | ||
| get_target_property ( _library_chk ${_target_shared} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_LIBRARY ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| if ( TARGET ${_target_static} AND NOT ${_var_prefix}_STATIC ) | ||
| get_target_property ( _library_chk ${_target_static} | ||
| IMPORTED_LOCATION_${_uc_config} ) | ||
| if ( EXISTS ${_library_chk} ) | ||
| set ( ${_var_prefix}_STATIC ${_library_chk} ) | ||
| endif ( ) | ||
| endif ( ) | ||
| endforeach ( ) | ||
|
|
||
| set ( CHOLMOD_CUDA_LIBRARIES ${CHOLMOD_CUDA_LIBRARY} ) | ||
|
|
||
| macro ( suitesparse_check_exist _var _files ) | ||
| # ignore generator expressions | ||
| string ( GENEX_STRIP "${_files}" _files2 ) | ||
|
|
||
| foreach ( _file ${_files2} ) | ||
| if ( NOT EXISTS "${_file}" ) | ||
| message ( FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist!" ) | ||
| endif ( ) | ||
| endforeach () | ||
| endmacro ( ) | ||
|
|
||
| suitesparse_check_exist ( CHOLMOD_CUDA_LIBRARY ${CHOLMOD_CUDA_LIBRARY} ) | ||
|
|
||
| message ( STATUS "CHOLMOD_CUDA version: ${CHOLMOD_CUDA_VERSION}" ) | ||
| message ( STATUS "CHOLMOD_CUDA library: ${CHOLMOD_CUDA_LIBRARY}" ) | ||
| message ( STATUS "CHOLMOD_CUDA static: ${CHOLMOD_CUDA_STATIC}" ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| % version of SuiteSparse/CHOLMOD | ||
| \date{VERSION 4.2.0, Sept 8, 2023} |