From d52e2b5d6d28d0e0b6ce85a8b65d492e1834ea0e Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 27 Sep 2013 12:49:42 +0000 Subject: [PATCH] CMake: Bugfix - nice try... git-svn-id: https://svn.dealii.org/trunk@30978 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/modules/FindPETSC.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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() # -- 2.39.5