Commit 651e3663 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke Committed by Max Lyon
Browse files

Find TAO via `find_library`.

This gives us the full path which is important for recursive dependencies.
parent db115a63
...@@ -53,7 +53,7 @@ find_path(TAO_INCLUDE_DIR NAMES "include/tao.h" ...@@ -53,7 +53,7 @@ find_path(TAO_INCLUDE_DIR NAMES "include/tao.h"
ELSE(IS_DIRECTORY "$ENV{TAO_DIR}/lib/$ENV{PETSC_ARCH}/") #VERSION 2 ELSE(IS_DIRECTORY "$ENV{TAO_DIR}/lib/$ENV{PETSC_ARCH}/") #VERSION 2
# MESSAGE(STATUS "TAO Version 2.x") # MESSAGE(STATUS "TAO Version 2.x")
SET(TAO_LIBRARY_DIR "$ENV{TAO_DIR}/$ENV{PETSC_ARCH}/lib" CACHE PATH "Path to TAO Library") SET(TAO_LIBRARY_DIR "$ENV{TAO_DIR}/$ENV{PETSC_ARCH}/lib" CACHE PATH "Path to TAO Library")
SET(TAO_LIBRARY "tao" CACHE STRING "TAO Libraries") find_library(TAO_LIBRARY "tao" PATHS "${TAO_LIBRARY_DIR}")
ENDIF(IS_DIRECTORY "$ENV{TAO_DIR}/lib/$ENV{PETSC_ARCH}/") ENDIF(IS_DIRECTORY "$ENV{TAO_DIR}/lib/$ENV{PETSC_ARCH}/")
# MESSAGE(STATUS "${TAO_LIBRARY_DIR}") # MESSAGE(STATUS "${TAO_LIBRARY_DIR}")
......
Supports Markdown
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