This file is indexed.

/usr/lib/CGAL/FindLEDA.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
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
if (LEDA_INCLUDE_DIR AND LEDA_LIBRARIES )

  set(LEDA_FOUND TRUE)

else()

  find_path(LEDA_INCLUDE_DIR
            NAMES "LEDA/basic.h" "LEDA/system/basic.h"
            HINTS ENV LEDA_INC_DIR
                  ENV LEDA_DIR
            PATH_SUFFIXES incl
            DOC "The directory containing the LEDA header files WITHOUT the LEDA prefix"
          )

  find_library(LEDA_LIBRARY_RELEASE NAMES "leda"
               HINTS ENV LEDA_LIB_DIR
                     ENV LEDA_DIR
#               PATH_SUFFIXES lib
               DOC "Path to the LEDA library"
              )

  find_library(LEDA_LIBRARY_DEBUG NAMES "ledaD"
               HINTS ENV LEDA_LIB_DIR
                     ENV LEDA_DIR
#               PATH_SUFFIXES lib
               DOC "Path to the LEDA library"
              )

  if ( NOT LEDA_INCLUDE_DIR )
    typed_cache_set( FILEPATH "The directory containing the LEDA header files WITHOUT the LEDA prefix" LEDA_INCLUDE_DIR "$ENV{LEDA_INC_DIR}" )
  endif()

  if ( NOT LEDA_DEFINITIONS )
    typed_cache_set( STRING "Definitions for the LEDA library" LEDA_DEFINITIONS "$ENV{LEDA_DEFINITIONS}" )
  endif()

  if ( NOT LEDA_CXX_FLAGS )
    typed_cache_set( STRING "Compiler flags for the LEDA library" LEDA_CXX_FLAGS "$ENV{LEDA_CXX_FLAGS}" )
  endif()

  if ( NOT LEDA_LINKER_FLAGS )
    typed_cache_set( STRING "Linker flags for the LEDA library" LEDA_LINKER_FLAGS "$ENV{LEDA_LINKER_FLAGS}" )
  endif()

  if ( NOT LEDA_LIBRARY_RELEASE )
    typed_cache_set( FILEPATH "The LEDA release-mode libraries" LEDA_LIBRARY_RELEASE "$ENV{LEDA_LIBRARY_RELEASE}" )
  endif()

  if ( NOT LEDA_LIBRARY_DEBUG )
    typed_cache_set( FILEPATH "The LEDA debug-mode libraries" LEDA_LIBRARY_DEBUG "$ENV{LEDA_LIBRARY_DEBUG}" )
  endif()

  if(LEDA_LIBRARY_RELEASE)
    if(LEDA_LIBRARY_DEBUG)
      set(LEDA_LIBRARIES_ optimized ${LEDA_LIBRARY_RELEASE} debug ${LEDA_LIBRARY_DEBUG})
    else()
      set(LEDA_LIBRARIES_ ${LEDA_LIBRARY_RELEASE})
    endif()
  endif()

  set(LEDA_LIBRARIES ${LEDA_LIBRARIES_} CACHE FILEPATH "The LEDA library")

endif()

set( LEDA_BASIC_H "${LEDA_INCLUDE_DIR}/LEDA/system/basic.h" )
if ( NOT EXISTS ${LEDA_BASIC_H} )
  set( LEDA_BASIC_H "${LEDA_INCLUDE_DIR}/LEDA/basic.h" )
endif()

if ( EXISTS ${LEDA_BASIC_H} )

  file(READ "${LEDA_BASIC_H}" LEDA_BASIC_H_CONTENTS)

  string(REGEX REPLACE ".*#define __LEDA__ ([0-9]+).*" "\\1" LEDA_VERSION "${LEDA_BASIC_H_CONTENTS}")

  message( STATUS "USING LEDA_VERSION = '${LEDA_VERSION}'" )

endif()

if ( NOT LEDA_VERSION AND NOT "$ENV{LEDA_VERSION}" STREQUAL "" )
  typed_cache_set( STRING "The version of the LEDA library" LEDA_VERSION "$ENV{LEDA_VERSION}" )
endif()

if ( LEDA_VERSION )
  if ( NOT "${LEDA_DEFINITIONS}" MATCHES "-DCGAL_LEDA_VERSION=${LEDA_VERSION}" )
    typed_cache_set( STRING "Definitions for the LEDA library" LEDA_DEFINITIONS "${LEDA_DEFINITIONS}" "-DCGAL_LEDA_VERSION=${LEDA_VERSION}" )
  endif()
endif()

if ( LEDA_INCLUDE_DIR AND LEDA_LIBRARIES)
  set(LEDA_FOUND TRUE)

  if ( CMAKE_COMPILER_IS_GNUCXX )
    get_dependency_version (GCC)
    if ( NOT "${GCC_VERSION}" VERSION_LESS "4.1" )
      set(LEDA_CGAL_FRIEND_INJECTION TRUE)
      typed_cache_set( STRING "Add -ffriend-injection on gcc >= 4.1" LEDA_CGAL_FRIEND_INJECTION "Using LEDA with gcc version 4.1 or later: Adding -ffriend-injection")
      uniquely_add_flags (LEDA_CXX_FLAGS "-ffriend-injection")
    endif()
    if ( NOT "${GCC_VERSION}" VERSION_LESS "4.4" )
      set(LEDA_CGAL_NO_STRICT_ALIASING TRUE)
      typed_cache_set( STRING "Add -fno-strict-aliasing on gcc >= 4.4" LEDA_CGAL_NO_STRICT_ALIASING "Using LEDA with gcc version 4.4 or later: Adding -fno-strict-aliasing")
      uniquely_add_flags (LEDA_CXX_FLAGS "-fno-strict-aliasing")
    endif()
    if ( UNIX )
      set(LEDA_CGAL_LINK_X11 TRUE)
      typed_cache_set( STRING "Link against X11 on *nix" LEDA_CGAL_LINK_X11 "Using LEDA with gcc on *nix: Adding -lX11")
      uniquely_add_flags( LEDA_LINKER_FLAGS "-lX11" )
    endif()
  endif()

  set(LEDA_USE_FILE "CGAL_UseLEDA")
endif()