From d3e336e8acb2d049cc9a78730602e428e0b8e00b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 13 Sep 2018 11:37:26 +0200 Subject: [PATCH] UMFPACK is needed by Orbifold parametrization --- .../Surface_mesh_parameterization/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt index 79737b538dc..a9d250dd635 100644 --- a/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt +++ b/Surface_mesh_parameterization/examples/Surface_mesh_parameterization/CMakeLists.txt @@ -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)