Commit 81daede0 authored by Jan Möbius's avatar Jan Möbius
Browse files

Changed basic paths for cholmod

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6238 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e764f856
# - Try to find CHOLMOD
# Once done this will define
#
# CHOLMOD_FOUND - system has CHOLMOD
# CHOLMOD_INCLUDE_DIRS - the CHOLMOD include directory
# CHOLMOD_LIBRARY - Link these to use CHOLMOD
#
IF (CHOLMOD_INCLUDE_DIRS)
# Already in cache, be silent
SET(CHOLMOD_FIND_QUIETLY TRUE)
ENDIF (CHOLMOD_INCLUDE_DIRS)
if( WIN32 )
FIND_PATH( CHOLMOD_INCLUDE_DIRS cholmod.h
PATHS "C:\\SuiteSparse\\CHOLMOD\\Include" )
FIND_PATH( CHOLMOD_LIBRARY
libcholmod.a
PATHS "C:\\SuiteSparse\\CHOLMOD\\Lib" )
SET( CHOLMOD_LIBRARY "${CHOLMOD_LIBRARY}/libcholmod.a" )
message(STATUS ${CHOLMOD_LIBRARY})
else( WIN32 )
FIND_PATH( CHOLMOD_INCLUDE_DIRS cholmod.h
PATHS /usr/local/include /usr/include /usr/include/suitesparse/
PATH_SUFFIXES cholmod/ CHOLMOD/ )
SET( CHOLMOD_NAMES cholmod CHOLMOD )
FIND_LIBRARY( CHOLMOD_LIBRARY
NAMES ${CHOLMOD_NAMES}
PATHS /usr/lib /usr/local/lib )
endif( WIN32 )
GET_FILENAME_COMPONENT( CHOLMOD_LIBRARY_DIR ${CHOLMOD_LIBRARY} PATH )
IF (CHOLMOD_INCLUDE_DIRS AND CHOLMOD_LIBRARY)
IF(WIN32)
list (APPEND CHOLMOD_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIRS}/../../UFconfig )
ENDIF(WIN32)
SET(CHOLMOD_FOUND TRUE)
ELSE (CHOLMOD_INCLUDE_DIRS AND CHOLMOD_LIBRARY)
SET( CHOLMOD_FOUND FALSE )
ENDIF (CHOLMOD_INCLUDE_DIRS AND CHOLMOD_LIBRARY)
# - Try to find CHOLMOD
# Once done this will define
#
# CHOLMOD_FOUND - system has CHOLMOD
# CHOLMOD_INCLUDE_DIRS - the CHOLMOD include directory
# CHOLMOD_LIBRARY - Link these to use CHOLMOD
#
IF (CHOLMOD_INCLUDE_DIRS)
# Already in cache, be silent
SET(CHOLMOD_FIND_QUIETLY TRUE)
ENDIF (CHOLMOD_INCLUDE_DIRS)
if( WIN32 )
FIND_PATH( CHOLMOD_INCLUDE_DIRS cholmod.h
PATHS "C:\\libs\\SuiteSparse\\CHOLMOD\\Include" )
FIND_LIBRARY( CHOLMOD_LIBRARY
cholmod
PATHS "C:\\libs\\SuiteSparse\\CHOLMOD\\Lib" )
else( WIN32 )
FIND_PATH( CHOLMOD_INCLUDE_DIRS cholmod.h
PATHS /usr/local/include /usr/include /usr/include/suitesparse/
PATH_SUFFIXES cholmod/ CHOLMOD/ )
SET( CHOLMOD_NAMES cholmod CHOLMOD )
FIND_LIBRARY( CHOLMOD_LIBRARY
NAMES ${CHOLMOD_NAMES}
PATHS /usr/lib /usr/local/lib )
endif( WIN32 )
GET_FILENAME_COMPONENT( CHOLMOD_LIBRARY_DIR ${CHOLMOD_LIBRARY} PATH )
IF (CHOLMOD_INCLUDE_DIRS AND CHOLMOD_LIBRARY)
IF(WIN32)
list (APPEND CHOLMOD_INCLUDE_DIRS ${CHOLMOD_INCLUDE_DIRS}/../../UFconfig )
ENDIF(WIN32)
SET(CHOLMOD_FOUND TRUE)
ELSE (CHOLMOD_INCLUDE_DIRS AND CHOLMOD_LIBRARY)
SET( CHOLMOD_FOUND FALSE )
ENDIF (CHOLMOD_INCLUDE_DIRS AND CHOLMOD_LIBRARY)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment