Commit 0e1ccfe1 authored by Jan Möbius's avatar Jan Möbius
Browse files

Switch superlu to debug in debug build

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7007 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c1fbd435
if (SUPERLU_INCLUDE_DIR)
# in cache already
set(SUPERLU_FOUND TRUE)
else (SUPERLU_INCLUDE_DIR)
if (WIN32)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PREFIXES SRC
PATHS
"C:\\libs\\SuperLU_3.0"
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
SuperLU
PATHS "C:\\libs\\SuperLU_3.0\\lib" )
ELSEIF(APPLE)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/SuperLU_3.0/SuperLU"
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
superlu
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/SuperLU_3.0/SuperLU")
ELSE( WIN32 )
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PATHS /usr/include/superlu
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
superlu
PATHS /usr/lib )
ENDIF()
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SUPERLU DEFAULT_MSG SUPERLU_INCLUDE_DIR )
endif(SUPERLU_INCLUDE_DIR)
if (SUPERLU_INCLUDE_DIR)
# in cache already
set(SUPERLU_FOUND TRUE)
else (SUPERLU_INCLUDE_DIR)
if (WIN32)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PREFIXES SRC
PATHS
"C:\\libs\\SuperLU_3.0"
${SUPERLU_INCLUDE_PATH}
)
IF( CMAKE_BUILD_TYPE MATCHES Release )
find_library( SUPERLU_LIBRARY
SuperLU
PATHS "C:\\libs\\SuperLU_3.0\\lib" )
ELSE()
find_library( SUPERLU_LIBRARY
SuperLUd
PATHS "C:\\libs\\SuperLU_3.0\\lib" )
ENDIF()
ELSEIF(APPLE)
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/SuperLU_3.0/SuperLU"
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
superlu
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/SuperLU_3.0/SuperLU")
ELSE( WIN32 )
find_path(SUPERLU_INCLUDE_DIR NAMES supermatrix.h
PATHS /usr/include/superlu
${SUPERLU_INCLUDE_PATH}
)
find_library( SUPERLU_LIBRARY
superlu
PATHS /usr/lib )
ENDIF()
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SUPERLU DEFAULT_MSG SUPERLU_INCLUDE_DIR )
endif(SUPERLU_INCLUDE_DIR)
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