Roipo / Autocuts

Mozilla Public License 2.0
36 stars 15 forks source link

Missing libraries when building with Pardiso solver (on linux) #7

Open allo- opened 6 years ago

allo- commented 6 years ago

When building with Pardiso I had to replace

set(LIBIGL_EXTRA_LIBRARIES ${LIBIGL_EXTRA_LIBRARIES} ${CMAKE_SOURCE_DIR}/libpardiso500-MACOS-X86-64.dylib)

with

find_package(BLAS REQUIRED)
find_package(LAPACK REQUIRED)
find_library(GFORTRAN_LIBRARY NAMES libgfortran.so)
set(LIBIGL_EXTRA_LIBRARIES ${LIBIGL_EXTRA_LIBRARIES} ${CMAKE_SOURCE_DIR}/libpardiso600-GNU720-X86-64.so ${BLAS_LIBRARIES} ${GFORTRAN_LIBRARY} ${LAPACK_LIBRARIES})
set(SRCFILES ${SRCFILES} PardisoSolver.cpp)
add_definitions(-DUSE_PARDISO)

to be able to build on linux.