Commit 46a15fdd authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Fixing FindTPLTasmanian.cmake to use Tasmanian_DIR.

parent 7d655b06
IF(NOT Tasmanian_REQUIRED_VERSION)
SET(Tasmanian_REQUIRED_VERSION 5.1.0)
ENDIF()
IF(Tasmanian_LIBRARY_DIRS)
SET(Tasmanian_LIBRARY_DIR ${Tasmanian_LIBRARY_DIRS})
ENDIF()
ASSERT_DEFINED(Tasmanian_DIR)
IF(TPL_Tasmanian_LIBRARY_DIRS)
SET(Tasmanian_LIBRARY_DIR ${TPL_Tasmanian_LIBRARY_DIRS})
ENDIF()
GET_FILENAME_COMPONENT(PACKAGE_PREFIX_DIR "${Tasmanian_DIR}/../" ABSOLUTE)
MESSAGE(STATUS "Tasmanian Package Prefix: '${PACKAGE_PREFIX_DIR}'")
IF(Tasmanian_INCLUDE_DIRS)
SET(Tasmanian_INCLUDE_DIR ${Tasmanian_INCLUDE_DIRS})
ENDIF()
IF(TPL_Tasmanian_INCLUDE_DIRS)
SET(Tasmanian_INCLUDE_DIR ${TPL_Tasmanian_INCLUDE_DIRS})
ENDIF()
IF(TPL_Tasmanian_LIBRARIES)
SET(Tasmanian_LIBRARIES ${TPL_Tasmanian_LIBRARIES})
ENDIF()
IF(NOT Tasmanian_REQUIRED_VERSION)
SET(Tasmanian_REQUIRED_VERSION 5.1.0)
ENDIF()
IF(Tasmanian_DIR)
MESSAGE(STATUS "Search for Tasmanian '${Tasmanian_REQUIRED_VERSION}' PATHS '${Tasmanian_DIR}'")
FIND_PACKAGE(Tasmanian "${Tasmanian_REQUIRED_VERSION}"
PATHS "${Tasmanian_DIR}")
ELSE()
MESSAGE(STATUS "Search for Tasmanian '${Tasmanian_REQUIRED_VERSION}'")
FIND_PACKAGE(Tasmanian "${Tasmanian_REQUIRED_VERSION}")
ENDIF()
if(NOT Tasmanian_FOUND)
message(" ____")
message(" __,-~~/~ `---.")
message(" _/_,---( , )")
message(" __ / < / ) \\___")
message("- ------===;;;'====------------------===;;;===----- - -")
message(" \\/ ~\"~\"~\"~\"~\"~\\~\"~)~\"/")
message(" (_ ( \\ ( > \\)")
message(" \\_( _ < >_>'")
message(" ~ `-i' ::>|--\"")
message(" I;|.|.|")
message(" <|i::|i|`.")
message(" (` ^'`-' )")
MESSAGE(FATAL_ERROR "Couldn't find Tasmanian. This causes explosions.")
endif()
IF(NOT(Tasmanian_INCLUDE_DIRS))
SET(Tasmanian_INCLUDE_DIRS ${Tasmanian_INCLUDE_DIRS})
ENDIF()
IF(NOT(Tasmanian_LIBRARY_DIRS))
SET(Tasmanian_LIBRARY_DIRS ${Tasmanian_LIBRARY_DIRS})
ENDIF()
IF(NOT TPL_Tasmanian_INCLUDE_DIRS )
SET(TPL_Tasmanian_INCLUDE_DIRS ${Tasmanian_INCLUDE_DIRS})
ENDIF()
IF(NOT TPL_Tasmanian_LIBRARY_DIRS )
SET(TPL_Tasmanian_LIBRARY_DIRS ${Tasmanian_LIBRARY_DIRS})
ENDIF()
IF(NOT TPL_Tasmanian_LIBRARIES)
SET(TPL_Tasmanian_LIBRARIES ${Tasmanian_LIBRARIES})
ENDIF()
SET(TPL_Tasmanian_LIBRARIES ${TPL_Tasmanian_LIBRARIES} CACHE STRING "Tasmanian TPL libraries")
SET(TPL_Tasmanian_LIBRARY_DIRS ${TPL_Tasmanian_LIBRARY_DIRS} CACHE STRING "Tasmanian TPL library directories")
SET(TPL_Tasmanian_INCLUDE_DIRS ${TPL_Tasmanian_INCLUDE_DIRS} CACHE STRING "Tasmanian TPL include dirs")
SET(Tasmanian_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include" CACHE STRING "" FORCE)
SET(Tasmanian_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib" CACHE STRING "" FORCE)
TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES(
Tasmanian
REQUIRED_HEADERS TasmanianSparseGrid.hpp
REQUIRED_LIBS_NAMES tasmaniansparsegrid
)
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