Merge pull request #3331 from sloriot/Installation-SparseSuite_UMFPACK

UMFPACK is needed by Orbifold parametrization
This commit is contained in:
Laurent Rineau 2018-09-17 11:36:14 +02:00
commit 9218e9039c
1 changed files with 8 additions and 4 deletions

View File

@ -41,10 +41,14 @@ if ( CGAL_FOUND )
endif(NOT SuiteSparse_FOUND)
if(SuiteSparse_FOUND)
message(STATUS "SuiteSparse_LIBS: ${SuiteSparse_LIBRARIES}")
message(STATUS "Orbifold Tutte Embeddings will use UmfPackLU")
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
add_definitions(-DCGAL_SMP_USE_SPARSESUITE_SOLVERS)
if (SuiteSparse_UMFPACK_FOUND)
message(STATUS "SuiteSparse_LIBS: ${SuiteSparse_LIBRARIES}")
message(STATUS "Orbifold Tutte Embeddings will use UmfPackLU")
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
add_definitions(-DCGAL_SMP_USE_SPARSESUITE_SOLVERS)
else()
message(STATUS "NOTICE: The example `orbifold.cpp` will be compiled without the Sparsesuite library and UmfPack. Try setting SuiteSparse_UMF_INCLUDE_DIR and at least one of SuiteSparse_UMFPACK_LIBRARY_RELEASE and SuiteSparse_UMFPACK_LIBRARY_DEBUG to you UMFPACK installation.")
endif()
else(SuiteSparse_FOUND)
message(STATUS "NOTICE: The example `orbifold.cpp` will be compiled without the Sparsesuite library.")
endif(SuiteSparse_FOUND)