]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make cmake add paralution include directory in Make.global_options.
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 16 May 2014 22:39:58 +0000 (22:39 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 16 May 2014 22:39:58 +0000 (22:39 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_paralution@32931 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_2_paralution.cmake
deal.II/cmake/modules/FindPARALUTION.cmake

index d49531363564fd12e521cbf5a42791d0010ab875..7ba4d99a1c8dd8baf6cf9384dc5cb48e4fef421c 100644 (file)
@@ -21,9 +21,6 @@
 
 MACRO(FEATURE_PARALUTION_CONFIGURE_EXTERNAL)
   
-  SET(PARALUTION_ADD_TO_USER_INCLUDE_DIRS TRUE)
-  REGISTER_FEATURE(PARALUTION)
-
   SET(DEAL_II_EXPAND_PARALUTION_VECTOR_FLOAT "ParalutionWrappers::Vector<float>")
   SET(DEAL_II_EXPAND_PARALUTION_VECTOR_DOUBLE "ParalutionWrappers::Vector<double>")
 
index 7a1a5fb0ecc6580c3264a053c4c0321545a231d5..caf374cb7240b42f83dc226280a99e6ee7f076a1 100644 (file)
@@ -19,8 +19,8 @@
 #
 # This module exports
 #
-#   PARALUTION_INCLUDE_DIRS
-#   PARALUTION_LIBRARIES
+#   PARALUTION_INCLUDE_DIR
+#   PARALUTION_LIBRARY
 #   PARALUTION_VERSION
 #   PARALUTION_VERSION_MAJOR
 #   PARALUTION_VERSION_MINOR
@@ -58,10 +58,10 @@ MARK_AS_ADVANCED(
   )
 
 IF(PARALUTION_FOUND)
-  SET(PARALUTION_INCLUDE_DIRS
+  SET(PARALUTION_INCLUDE_DIR
     ${PARALUTION_INCLUDE_DIR}
     )
-  SET(PARALUTION_LIBRARIES
+  SET(PARALUTION_LIBRARY
     ${PARALUTION_LIBRARY}
     )
   FILE(STRINGS "${PARALUTION_INCLUDE_DIR}/base/version.hpp" PARALUTION_VERSION_MAJOR_STRING
@@ -92,3 +92,14 @@ ELSE()
     "An optional hint to a paralution directory"
     )
 ENDIF()
+
+DEAL_II_PACKAGE_HANDLE(PARALUTION
+  LIBRARIES
+    REQUIRED PARALUTION_LIBRARY
+  INCLUDE_DIRS
+    REQUIRED PARALUTION_INCLUDE_DIR
+  USER_INCLUDE_DIRS
+    REQUIRED PARALUTION_INCLUDE_DIR
+  CLEAR 
+    PARALUTION_LIBRARY PARALUTION_INCLUDE_DIR
+  )

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.