File: FindLibelf.cmake

package info (click to toggle)
simgrid 3.25%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 23,308 kB
  • sloc: cpp: 100,922; ansic: 68,086; fortran: 6,061; xml: 5,176; f90: 5,123; java: 4,094; python: 2,623; perl: 1,843; sh: 1,241; makefile: 47; javascript: 7; sed: 6
file content (34 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (3)
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
find_path(LIBELF_INCLUDE_DIR "libelf.h"
  HINTS
  $ENV{SIMGRID_LIBELF_LIBRARY_PATH}
  $ENV{LD_LIBRARY_PATH}
  $ENV{LIBELF_LIBRARY_PATH}
  PATH_SUFFIXES include/ GnuWin32/include
  PATHS
  /opt
  /opt/local
  /opt/csw
  /sw
  /usr)
find_library(LIBELF_LIBRARY
  NAMES elf
  HINTS
  $ENV{SIMGRID_LIBELF_LIBRARY_PATH}
  $ENV{LD_LIBRARY_PATH}
  $ENV{LIBELF_LIBRARY_PATH}
  PATH_SUFFIXES lib/ GnuWin32/lib
  PATHS
  /opt
  /opt/local
  /opt/csw
  /sw
  /usr)
set(LIBELF_LIBRARIES "${LIBELF_LIBRARY}")

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
  Libelf
  DEFAULT_MSG
  LIBELF_LIBRARIES
  LIBELF_INCLUDE_DIR)
mark_as_advanced(LIBELF_INCLUDE_DIR LIBELF_LIBRARIES)