Commit 7d655b06 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Updating FindTPLTasmanian.cmake to pivot off Tasmanian_DIR.

parent c20c7ece
......@@ -55,7 +55,7 @@
SET(radix_TPLS_FINDMODS_CLASSIFICATIONS
LAPACK "${${PROJECT_NAME}_TRIBITS_DIR}/common_tpls/" PT
Tasmanian "cmake/TPLs" ST
Tasmanian "cmake/TPLs/" ST
Qt5Core "cmake/TPLs/" ST
Qt5Gui "cmake/TPLs/" ST
Qt5Widgets "cmake/TPLs/" ST
......
TRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES(
Tasmanian
REQUIRED_HEADERS TasmanianSparseGrid.h
REQUIRED_LIBS_NAMES tasmaniansparsegrid
)
\ No newline at end of file
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()
IF(TPL_Tasmanian_LIBRARY_DIRS)
SET(Tasmanian_LIBRARY_DIR ${TPL_Tasmanian_LIBRARY_DIRS})
ENDIF()
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")
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