]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix, use a separate variable for FIND_PACKAGE, improve search order
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Mar 2013 12:26:56 +0000 (12:26 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Mar 2013 12:26:56 +0000 (12:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@28865 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindTRILINOS.cmake

index bb37a6b1dbbf612f6b93be11a130decfcaa684cd..757a31c3cefbe45d1a37457e4a67bd3d06b736da 100644 (file)
@@ -33,17 +33,18 @@ SET_IF_EMPTY(TRILINOS_DIR "$ENV{TRILINOS_DIR}")
 #
 # Include the trilinos package configuration:
 #
-FIND_PACKAGE(TRILINOS
-  QUIET CONFIG
+FIND_PACKAGE(TRILINOS_CONFIG
+  CONFIG
   NAMES Trilinos TRILINOS
   HINTS
+    ${TRILINOS_DIR}/lib/cmake/Trilinos
     ${TRILINOS_DIR}
   PATH_SUFFIXES
-    lib${LIB_SUFFIX}/cmake/Trilinos
     lib64/cmake/Trilinos
     lib/cmake/Trilinos
-    include/Trilinos
+    lib${LIB_SUFFIX}/cmake/Trilinos
     include/trilinos
+    include/Trilinos
   NO_SYSTEM_ENVIRONMENT_PATH
   )
 
@@ -77,7 +78,7 @@ ENDFOREACH()
 
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(TRILINOS DEFAULT_MSG
   TRILINOS_LIBRARIES # cosmetic: Gives nice output
-  TRILINOS_FOUND
+  TRILINOS_CONFIG_FOUND
   )
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.