mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
da45184635
fix issues in Cholmod/Taucs supports
31 lines
683 B
CMake
31 lines
683 B
CMake
|
|
if (TAUCS_INCLUDES AND TAUCS_LIBRARIES)
|
|
set(TAUCS_FIND_QUIETLY TRUE)
|
|
endif (TAUCS_INCLUDES AND TAUCS_LIBRARIES)
|
|
|
|
find_package(LAPACK)
|
|
|
|
if(LAPACK_FOUND)
|
|
|
|
find_path(TAUCS_INCLUDES
|
|
NAMES
|
|
taucs.h
|
|
PATHS
|
|
$ENV{TAUCSDIR}
|
|
${INCLUDE_INSTALL_DIR}
|
|
)
|
|
|
|
find_library(TAUCS_LIBRARIES taucs PATHS $ENV{TAUCSDIR} ${LIB_INSTALL_DIR})
|
|
|
|
if(TAUCS_LIBRARIES)
|
|
set(TAUCS_LIBRARIES ${TAUCS_LIBRARIES} ${LAPACK_LIBRARY})
|
|
endif(TAUCS_LIBRARIES)
|
|
|
|
endif(LAPACK_FOUND)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(TAUCS DEFAULT_MSG
|
|
TAUCS_INCLUDES TAUCS_LIBRARIES)
|
|
|
|
mark_as_advanced(TAUCS_INCLUDES TAUCS_LIBRARIES)
|