This file is indexed.

/usr/share/camitk-3.3/cmake/ProgramFilesGlob.cmake is in libcamitk3-dev 3.3.2-2.

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
# - Find bit-appropriate program files directories matching a given pattern
#
# Requires these CMake modules:
#  CleanDirectoryList
#  PrefixListGlob
#
# Original Author:
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright Iowa State University 2009-2010.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

include(PrefixListGlob)
include(CleanDirectoryList)

if(__program_files_glob)
	return()
endif()
set(__program_files_glob YES)

function(program_files_glob var pattern)
	# caution - ENV{ProgramFiles} on Win64 is adjusted to point to the arch
	# of the running executable which, since CMake is 32-bit on Windows as
	# I write this, will always be = $ENV{ProgramFiles(x86)}.
	# Thus, we only use this environment variable if we are on a 32 machine

	# 32-bit dir on win32, useless to us on win64
	file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _PROG_FILES)

	# 32-bit dir: only set on win64
	file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _PROG_FILES_X86)

	# 64-bit dir: only set on win64
	file(TO_CMAKE_PATH "$ENV{ProgramW6432}" _PROG_FILES_W6432)

	if(CMAKE_SIZEOF_VOID_P MATCHES "8")
		# 64-bit build on win64
		set(_PROGFILESDIRS "${_PROG_FILES_W6432}")
	else()
		if(_PROG_FILES_W6432)
			# 32-bit build on win64
			set(_PROGFILESDIRS "${_PROG_FILES_X86}")
		else()
			# 32-bit build on win32
			set(_PROGFILESDIRS "${_PROG_FILES}")
		endif()
	endif()

	prefix_list_glob(_prefixed "${pattern}" ${_PROGFILESDIRS})
	clean_directory_list(_prefixed)
	set(${var} ${_prefixed} PARENT_SCOPE)
endfunction()

function(program_files_fallback_glob var pattern)
	# caution - ENV{ProgramFiles} on Win64 is adjusted to point to the arch
	# of the running executable which, since CMake is 32-bit on Windows as
	# I write this, will always be = $ENV{ProgramFiles(x86)}.
	# Thus, we only use this environment variable if we are on a 32 machine

	# 32-bit dir on win32, useless to us on win64
	file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _PROG_FILES)

	# 32-bit dir: only set on win64
	file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _PROG_FILES_X86)

	# 64-bit dir: only set on win64
	file(TO_CMAKE_PATH "$ENV{ProgramW6432}" _PROG_FILES_W6432)

	if(CMAKE_SIZEOF_VOID_P MATCHES "8")
		# 64-bit build on win64
		# look in the "32 bit" (c:\program files (x86)\) directory as a
		# fallback in case of weird/poorly written installers, like those
		# that put both 64- and 32-bit libs in the same program files directory
		set(_PROGFILESDIRS "${_PROG_FILES_W6432}" "${_PROG_FILES_X86}")
	else()
		if(_PROG_FILES_W6432)
			# 32-bit build on win64
			# look in the "64 bit" (c:\program files\) directory as a fallback
			# in case of old/weird/poorly written installers
			set(_PROGFILESDIRS "${_PROG_FILES_X86}" "${_PROG_FILES_W6432}")
		else()
			# 32-bit build on win32
			set(_PROGFILESDIRS "${_PROG_FILES}")
		endif()
	endif()

	prefix_list_glob(_prefixed "${pattern}" ${_PROGFILESDIRS})
	clean_directory_list(_prefixed)
	set(${var} ${_prefixed} PARENT_SCOPE)
endfunction()