Skip to content

Commit

Permalink
CHOLMOD: Use CMake default functions to check for type existence.
Browse files Browse the repository at this point in the history
Also remove CMake module that is no longer being used.
  • Loading branch information
mmuetzel committed Sep 3, 2023
1 parent 0cf7fcd commit e8b477b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
5 changes: 3 additions & 2 deletions CHOLMOD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ if ( NGPL )
endif ( )

include ( SuiteSparsePolicy )
include ( SuiteSparse_ssize_t )

include ( CheckTypeSize )
check_type_size ( "ssize_t" SSIZE_T )
if ( NOT HAVE_SSIZE_T )
# #include <sys/types.h> and ssize_t not defined (typically on Windows)
add_compile_definitions ( NO_SSIZE_T )
Expand Down Expand Up @@ -481,7 +483,6 @@ if ( SUITESPARSE_CUDA )
CUDA::nvToolsExt CUDA::cublas )
endif ( )

include ( CheckTypeSize )
set ( old_CMAKE_EXTRA_INCLUDE_FILES CMAKE_EXTRA_INCLUDE_FILES )
list ( APPEND CMAKE_EXTRA_INCLUDE_FILES "stdlib.h" )
check_type_size ( "__compar_fn_t" COMPAR_FN_T )
Expand Down
32 changes: 0 additions & 32 deletions SuiteSparse_config/cmake_modules/SuiteSparse_ssize_t.cmake

This file was deleted.

0 comments on commit e8b477b

Please sign in to comment.