Skip to content

Commit

Permalink
Allow turning off SPEX python interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rayegun committed May 20, 2024
1 parent 26ababc commit 8ecf3be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ option ( UMFPACK_USE_CHOLMOD "ON (default): use CHOLMOD in UMFPACK. OFF: do not
# library takes a long time
option ( GRAPHBLAS_BUILD_STATIC_LIBS "OFF (default): Do not build static libraries for GraphBLAS project. ON: Use same value of BUILD_STATIC_LIBS for GraphBLAS like in the other projects" OFF )

option ( SUITESPARSE_PYTHON "ON (default): build Python interfaces for SuiteSparse packages (SPEX). OFF: do not build Python interfaces for SuiteSparse packages" ON )

# options to build with libraries installed on the system instead of building
# dependencies automatically
option ( SUITESPARSE_USE_SYSTEM_BTF "ON: use BTF libraries installed on the build system. OFF (default): Automatically build BTF as dependency if needed." OFF )
Expand Down
4 changes: 2 additions & 2 deletions SPEX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ endif ( )
#-------------------------------------------------------------------------------
# python interface
#-------------------------------------------------------------------------------

if ( BUILD_SHARED_LIBS )
option ( SPEX_PYTHON "ON (default): build Python interface for SPEX. OFF: do not build Python interface for SPEX" ${SUITESPARSE_PYTHON} )
if ( BUILD_SHARED_LIBS AND SPEX_PYTHON)

file ( GLOB SPEX_PYTHON_SOURCES "Python/SPEXpy/Source/*.c" )
add_library ( spexpython SHARED ${SPEX_PYTHON_SOURCES} )
Expand Down

0 comments on commit 8ecf3be

Please sign in to comment.