This file is indexed.

/usr/share/dune/cmake/modules/DunePdelabMacros.cmake is in libdune-pdelab-dev 2.5.0~20170124g7cf9f47a-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
include(UsePETSc)
include(UseEigen)

function(add_dune_petsc_flags)
  if(PETSC_FOUND)
    cmake_parse_arguments(ADD_PETSC "SOURCE_ONLY;OBJECT" "" "" ${ARGN})
    if(ADD_PETSC_SOURCE_ONLY)
      set(_prefix SOURCE)
      set(_source_only SOURCE_ONLY)
      include_directories(${PETSC_INCLUDES})
    else()
      set(_prefix TARGET)
      if(ADD_PETSC_OBJECT)
        set(_prefix TARGET)
      else(ADD_PETSC_OBJECT)
        foreach(_target ${ADD_PETSC_UNPARSED_ARGUMENTS})
          target_link_libraries(${_target} ${PETSC_LIBRARIES})
        endforeach(_target ${ADD_PETSC_UNPARSED_ARGUMENTS})
      endif(ADD_PETSC_OBJECT)
      include_directories(${PETSC_INCLUDES})
    endif()

    set_property(${_prefix} ${ADD_PETSC_UNPARSED_ARGUMENTS} APPEND PROPERTY COMPILE_DEFINITIONS ENABLE_PETSC ${PETSC_DEFINITIONS})
    if(NOT (ADD_PETSC_SOURCE_ONLY OR ADD_PETSC_OBJECT))
      set_property(${_prefix} ${ADD_PETSC_UNPARSED_ARGUMENTS} APPEND PROPERTY LINK_LIBRARIES ${PETSC_LIBRARIES})
    endif(NOT (ADD_PETSC_SOURCE_ONLY OR ADD_PETSC_OBJECT))

  endif(PETSC_FOUND)
endfunction(add_dune_petsc_flags)

# Trying to run a sequential UG in a parallel PDELab application
# will result in very subtle errors. We therefore issue a warning
# and set a preprocessor variable to give meaningful error messages.
if(MPI_FOUND AND UG_FOUND)
  if(NOT (UG_PARALLEL STREQUAL "yes"))
    message(WARNING "You are using a sequential UG in a parallel PDELab environment!")
    set(PDELAB_SEQUENTIAL_UG 1)
  endif()
endif()