diff --git a/CHOLMOD/CMakeLists.txt b/CHOLMOD/CMakeLists.txt index 51a689365..e41db60fd 100644 --- a/CHOLMOD/CMakeLists.txt +++ b/CHOLMOD/CMakeLists.txt @@ -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 @@ -310,6 +315,11 @@ if ( BUILD_SHARED_LIBS ) $ ) 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 #------------------------------------------------------------------------------- @@ -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 #------------------------------------------------------------------------------- @@ -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 ) @@ -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 ) @@ -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 ) @@ -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}" ) @@ -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 ) @@ -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: @@ -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 ( ) diff --git a/SuiteSparse_config/CMakeLists.txt b/SuiteSparse_config/CMakeLists.txt index 5ae0a6bfc..1aa6492e6 100644 --- a/SuiteSparse_config/CMakeLists.txt +++ b/SuiteSparse_config/CMakeLists.txt @@ -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 @@ -101,6 +107,11 @@ if ( BUILD_SHARED_LIBS ) $ ) 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 #------------------------------------------------------------------------------- @@ -124,6 +135,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 SuiteSparseConfig INCLUDE_DIRECTORIES) +message ( STATUS "target 3: ${dirs}" ) + #------------------------------------------------------------------------------- # add the library dependencies #------------------------------------------------------------------------------- @@ -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} ") @@ -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 @@ -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 #------------------------------------------------------------------------------- @@ -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 ( )