]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix - nice try...
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 27 Sep 2013 12:49:42 +0000 (12:49 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 27 Sep 2013 12:49:42 +0000 (12:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@30978 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindPETSC.cmake

index 4e170207209be61923a51422b4e7c2e1fd54a2bf..3bd673927c2675c848de0ae8f41a13ef4b1f2f68 100644 (file)
@@ -106,7 +106,7 @@ IF(NOT PETSC_PETSCVARIABLES MATCHES "-NOTFOUND")
   SEPARATE_ARGUMENTS(_external_includes)
 
   SET(_petsc_includes)
-  FOREACH(_token ${_external_includes}})
+  FOREACH(_token ${_external_includes})
     IF(_token MATCHES "^-I")
       STRING(REGEX REPLACE "^-I" "" _token "${_token}")
       LIST(APPEND _petsc_includes ${_token})
@@ -115,8 +115,7 @@ IF(NOT PETSC_PETSCVARIABLES MATCHES "-NOTFOUND")
 
   # Remove petsc's own include directories:
   IF(NOT "${_petsc_includes}" STREQUAL "")
-    LIST(REMOVE_ITEM _petsc_includes "${PETSC_INCLUDE_DIR_COMMON}")
-    LIST(REMOVE_ITEM _petsc_includes "${PETSC_INCLUDE_DIR_ARCH}")
+    LIST(REMOVE_AT _petsc_includes 0 1)
   ENDIF()
 
   #

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.