Skip to content

Commit

Permalink
Support union with "all" in SUITESPARSE_ENABLE_PROJECTS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Sep 18, 2023
1 parent 1656213 commit 2057236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ if ( SUITESPARSE_CUDA )
endif ( )

# expand "all" early on
if ( SUITESPARSE_ENABLE_PROJECTS STREQUAL "all" )
set ( SUITESPARSE_ENABLE_PROJECTS ${SUITESPARSE_ALL_PROJECTS} )
if ( "all" IN_LIST SUITESPARSE_ENABLE_PROJECTS )
set ( SUITESPARSE_ENABLE_PROJECTS "${SUITESPARSE_ENABLE_PROJECTS};${SUITESPARSE_ALL_PROJECTS}" )
list ( REMOVE_ITEM SUITESPARSE_ENABLE_PROJECTS "all" )
list ( REMOVE_DUPLICATES SUITESPARSE_ENABLE_PROJECTS )
endif ( )

# check for unknown projects in list
Expand Down

0 comments on commit 2057236

Please sign in to comment.