From: Matthias Maier Date: Fri, 27 Sep 2013 12:49:42 +0000 (+0000) Subject: CMake: Bugfix - nice try... X-Git-Tag: v8.1.0~708 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d690a137749ef340b573c5b66ece160b72b7305;p=dealii.git CMake: Bugfix - nice try... git-svn-id: https://svn.dealii.org/trunk@30978 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/modules/FindPETSC.cmake b/deal.II/cmake/modules/FindPETSC.cmake index 4e17020720..3bd673927c 100644 --- a/deal.II/cmake/modules/FindPETSC.cmake +++ b/deal.II/cmake/modules/FindPETSC.cmake @@ -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() #