Skip to content

Commit

Permalink
debug messages for include directories: CHOLMOD and SuiteSparse_config
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Dec 2, 2023
1 parent e687e79 commit 8d00348
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
50 changes: 50 additions & 0 deletions CHOLMOD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ file ( GLOB CHOLMOD_SOURCES "Check/cholmod_*.c" "Cholesky/cholmod_*.c"
if ( BUILD_SHARED_LIBS )
add_library ( CHOLMOD SHARED ${CHOLMOD_SOURCES} )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 1: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 1: ${dirs}" )

set_target_properties ( CHOLMOD PROPERTIES
VERSION ${CHOLMOD_VERSION_MAJOR}.${CHOLMOD_VERSION_MINOR}.${CHOLMOD_VERSION_SUB}
C_STANDARD 11
Expand All @@ -310,6 +315,11 @@ if ( BUILD_SHARED_LIBS )
$<INSTALL_INTERFACE:${SUITESPARSE_INCLUDEDIR}> )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 2: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 2: ${dirs}" )

#-------------------------------------------------------------------------------
# static cholmod library properties
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -339,6 +349,11 @@ if ( BUILD_STATIC_LIBS )

endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 3: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 3: ${dirs}" )

#-------------------------------------------------------------------------------
# add the library dependencies
#-------------------------------------------------------------------------------
Expand All @@ -357,6 +372,11 @@ if ( BUILD_STATIC_LIBS )
endif ( )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 4: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 4: ${dirs}" )

# AMD:
if ( BUILD_SHARED_LIBS )
target_link_libraries ( CHOLMOD PRIVATE SuiteSparse::AMD )
Expand All @@ -369,6 +389,11 @@ if ( BUILD_STATIC_LIBS )
endif ( )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 5: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 5: ${dirs}" )

# COLAMD:
if ( BUILD_SHARED_LIBS )
target_link_libraries ( CHOLMOD PRIVATE SuiteSparse::COLAMD )
Expand All @@ -381,6 +406,11 @@ if ( BUILD_STATIC_LIBS )
endif ( )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 6: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 6: ${dirs}" )

# CAMD and CCOLAMD:
if ( NOT NCAMD )
if ( BUILD_SHARED_LIBS )
Expand Down Expand Up @@ -408,6 +438,11 @@ if ( NOT NCAMD )
endif ( )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 7: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 7: ${dirs}" )

# OpenMP:
if ( OpenMP_C_FOUND )
message ( STATUS "OpenMP C libraries: ${OpenMP_C_LIBRARIES}" )
Expand All @@ -427,6 +462,11 @@ else ( )
include ( SuiteSparse__thread )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 8: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 8: ${dirs}" )

# libm:
if ( NOT WIN32 )
if ( BUILD_SHARED_LIBS )
Expand All @@ -439,6 +479,11 @@ if ( NOT WIN32 )
endif ( )
list ( APPEND CHOLMOD_STATIC_LIBS "m" )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 9: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 9: ${dirs}" )

# BLAS and LAPACK: for the Supernodal Module
if ( NOT NSUPERNODAL )
# LAPACK:
Expand Down Expand Up @@ -784,6 +829,11 @@ endif ( )
# report status
#-------------------------------------------------------------------------------

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 10: ${dirs}" )
get_target_property(dirs CHOLMOD INCLUDE_DIRECTORIES)
message ( STATUS "target 10: ${dirs}" )

if ( NOT SUITESPARSE_ROOT_CMAKELISTS )
include ( SuiteSparseReport )
endif ( )
36 changes: 36 additions & 0 deletions SuiteSparse_config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ file ( GLOB SUITESPARSECONFIG_SOURCES "*.c" )

if ( BUILD_SHARED_LIBS )
add_library ( SuiteSparseConfig SHARED ${SUITESPARSECONFIG_SOURCES} )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 1: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 1: ${dirs}" )

set_target_properties ( SuiteSparseConfig PROPERTIES
VERSION ${SUITESPARSE_VERSION_MAJOR}.${SUITESPARSE_VERSION_MINOR}.${SUITESPARSE_VERSION_SUB}
C_STANDARD 11
Expand All @@ -101,6 +107,11 @@ if ( BUILD_SHARED_LIBS )
$<INSTALL_INTERFACE:${SUITESPARSE_INCLUDEDIR}> )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 2: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 2: ${dirs}" )

#-------------------------------------------------------------------------------
# static SuiteSparseConfig library properties
#-------------------------------------------------------------------------------
Expand All @@ -124,6 +135,11 @@ if ( BUILD_STATIC_LIBS )
$<INSTALL_INTERFACE:${SUITESPARSE_INCLUDEDIR}> )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 3: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 3: ${dirs}" )

#-------------------------------------------------------------------------------
# add the library dependencies
#-------------------------------------------------------------------------------
Expand All @@ -138,6 +154,11 @@ if ( NOT WIN32 )
endif ( )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 4: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 4: ${dirs}" )

# OpenMP:
if ( OpenMP_C_FOUND )
message ( STATUS "OpenMP C libraries: ${OpenMP_C_LIBRARIES} ")
Expand All @@ -153,6 +174,11 @@ if ( OpenMP_C_FOUND )
endif ( )
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 5: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 5: ${dirs}" )

# BLAS:
if ( BLAS_FOUND )
# SuiteSparse_config does not itself require the BLAS. It just needs to
Expand All @@ -163,6 +189,11 @@ if ( BLAS_FOUND )
message ( STATUS "BLAS include: ${BLAS_INCLUDE_DIRS} ")
endif ( )

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 6: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 6: ${dirs}" )

#-------------------------------------------------------------------------------
# SuiteSparseConfig installation location
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -247,6 +278,11 @@ endif ( )
# report status
#-------------------------------------------------------------------------------

get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
message ( STATUS "inc 7: ${dirs}" )
get_target_property(dirs SuiteSparseConfig INCLUDE_DIRECTORIES)
message ( STATUS "target 7: ${dirs}" )

if ( NOT SUITESPARSE_ROOT_CMAKELISTS )
include ( SuiteSparseReport )
endif ( )

0 comments on commit 8d00348

Please sign in to comment.