Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add jarfile generation script for github, using actions.
[simgrid.git] / tools / cmake / Modules / FindLibelf.cmake
1 find_path(LIBELF_INCLUDE_DIR "libelf.h"
2   HINTS
3   $ENV{SIMGRID_LIBELF_LIBRARY_PATH}
4   $ENV{LD_LIBRARY_PATH}
5   $ENV{LIBELF_LIBRARY_PATH}
6   PATH_SUFFIXES include/ GnuWin32/include
7   PATHS
8   /opt
9   /opt/local
10   /opt/csw
11   /sw
12   /usr)
13 find_library(LIBELF_LIBRARY
14   NAMES elf
15   HINTS
16   $ENV{SIMGRID_LIBELF_LIBRARY_PATH}
17   $ENV{LD_LIBRARY_PATH}
18   $ENV{LIBELF_LIBRARY_PATH}
19   PATH_SUFFIXES lib/ GnuWin32/lib
20   PATHS
21   /opt
22   /opt/local
23   /opt/csw
24   /sw
25   /usr)
26 set(LIBELF_LIBRARIES "${LIBELF_LIBRARY}")
27
28 include(FindPackageHandleStandardArgs)
29 find_package_handle_standard_args(
30   Libelf
31   DEFAULT_MSG
32   LIBELF_LIBRARIES
33   LIBELF_INCLUDE_DIR)
34 mark_as_advanced(LIBELF_INCLUDE_DIR LIBELF_LIBRARIES)