Skip to content

Commit

Permalink
Merge pull request #568 from mmuetzel/cmake
Browse files Browse the repository at this point in the history
Install SuiteSparse headers in subdirectory by default
  • Loading branch information
DrTimothyAldenDavis authored Dec 3, 2023
2 parents 5a7ee7c + b144a42 commit 2f9d84e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SuiteSparse_config/cmake_modules/SuiteSparsePolicy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ if ( NOT SUITESPARSE_ROOT_CMAKELISTS )
endif ( )
endif ( )

set ( SUITESPARSE_INCLUDEDIR_POSTFIX "suitesparse" CACHE STRING
"Postfix for installation target of header from SuiteSparse (default: \"suitesparse\")" )

if ( LOCAL_INSTALL )
if ( INSIDE_SUITESPARSE )
# ../lib and ../include exist: the package is inside SuiteSparse.
Expand All @@ -179,11 +182,11 @@ if ( LOCAL_INSTALL )
endif ( )
endif ( )
set ( SUITESPARSE_LIBDIR ${SUITESPARSE_LOCAL_PREFIX}/lib )
set ( SUITESPARSE_INCLUDEDIR ${SUITESPARSE_LOCAL_PREFIX}/include )
set ( SUITESPARSE_INCLUDEDIR ${SUITESPARSE_LOCAL_PREFIX}/include/${SUITESPARSE_INCLUDEDIR_POSTFIX} )
set ( SUITESPARSE_BINDIR ${SUITESPARSE_LOCAL_PREFIX}/bin )
else ( )
set ( SUITESPARSE_LIBDIR ${CMAKE_INSTALL_LIBDIR} )
set ( SUITESPARSE_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR} )
set ( SUITESPARSE_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR}/${SUITESPARSE_INCLUDEDIR_POSTFIX} )
set ( SUITESPARSE_BINDIR ${CMAKE_INSTALL_BINDIR} )
endif ( )

Expand Down

0 comments on commit 2f9d84e

Please sign in to comment.