This file is indexed.

/usr/lib/CGAL/CGAL_SetupDependencies.cmake is in libcgal-dev 4.2-5ubuntu1.

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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
include(CGAL_Macros)

message ( STATUS "External libraries supported: ${CGAL_SUPPORTING_3RD_PARTY_LIBRARIES}")

foreach (lib ${CGAL_SUPPORTING_3RD_PARTY_LIBRARIES})

  # Part 1: Try to find lib

  set (vlib "${CGAL_EXT_LIB_${lib}_PREFIX}")

  # Check whether lib is essential or WITH_<lib> is given:

  list(FIND CGAL_ESSENTIAL_3RD_PARTY_LIBRARIES "${lib}" POSITION)

  if ("${POSITION}" STRGREATER "-1" OR WITH_${lib})

    # In both cases CGAL_USE_<lib> will be finally set.
  
    #message (STATUS "With ${lib} given or essential: pos=${POSITION}")

    if ( CGAL_ENABLE_PRECONFIG )
      message (STATUS "Preconfiguring library: ${lib} ...")
    else()
      message (STATUS "Configuring library: ${lib} ...")
    endif()
  
    find_package( ${lib} )
   
    if ( ${vlib}_FOUND ) 
      if ( CGAL_ENABLE_PRECONFIG )
        message( STATUS "${lib} has been preconfigured:") 
        message( STATUS "  Use${lib}-file:      ${${vlib}_USE_FILE}") 
        message( STATUS "  ${lib} include:      ${${vlib}_INCLUDE_DIR}" )
        message( STATUS "  ${lib} libraries:    ${${vlib}_LIBRARIES}" )
        message( STATUS "  ${lib} definitions:  ${${vlib}_DEFINITIONS}" )
      else() 
        message( STATUS "${lib} has been configured") 
        use_lib( ${vlib} ${${vlib}_USE_FILE})
      endif()
   
      # TODO EBEB what about Qt3, Qt4, zlib etc?
      set ( CGAL_USE_${vlib} TRUE )


      # Part 2: Add some lib-specific definitions or obtain version
   
      if (${lib} STREQUAL "GMP") 
        get_dependency_version(GMP)
      endif()

      if (${lib} STREQUAL "MPFR") 
        set( MPFR_DEPENDENCY_INCLUDE_DIR ${GMP_INCLUDE_DIR} )
        set( MPFR_DEPENDENCY_LIBRARIES   ${GMP_LIBRARIES} )
        get_dependency_version(MPFR)
      endif()

      if (${lib} STREQUAL "LEDA") 
        # special case for LEDA - add a flag
        message( STATUS "$LEDA cxx flags:   ${LEDA_CXX_FLAGS}" )
        uniquely_add_flags( CMAKE_CXX_FLAGS ${LEDA_CXX_FLAGS} )
      endif()

    else() 
   
      if ("${POSITION}" STRGREATER "-1") # if lib is essential
        message( FATAL_ERROR "CGAL requires ${lib} to be found" )
      endif()

    endif()

  endif()

endforeach()

if( (GMP_FOUND AND NOT MPFR_FOUND) OR (NOT GMP_FOUND AND MPFR_FOUND) )
  message( FATAL_ERROR "CGAL needs for its full functionality both GMP and MPFR.")
endif()

if( NOT GMP_FOUND )
  set(CGAL_NO_CORE ON)
  message( STATUS "CGAL_Core needs GMP, cannot be configured.")
endif( NOT GMP_FOUND )

# finally setup Boost
include(CGAL_SetupBoost)