-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify libdw detection and check for conflict with dyninst
- Loading branch information
Showing
5 changed files
with
72 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Try to find LIBDW headers and libraries. | ||
# | ||
# Usage of this module as follows: | ||
# | ||
# find_package(ElfUtils) | ||
# | ||
# Variables used by this module, they can change the default behaviour and need | ||
# to be set before calling find_package: | ||
# | ||
# LIBDW_PREFIX Set this variable to the root installation of | ||
# libpapi if the module has problems finding the | ||
# proper installation path. | ||
# | ||
# Variables defined by this module: | ||
# | ||
# LIBDW_FOUND System has LIBDW libraries and headers | ||
# LIBDW_LIBRARIES The LIBDW library | ||
# LIBDW_INCLUDE_DIRS The location of LIBDW headers | ||
|
||
if (LIBDW_INCLUDE_DIR AND LIBDW_LIBRARY) | ||
set(LIBDW_FIND_QUIETLY true) | ||
endif() | ||
|
||
find_path(LIBDW_INCLUDE_DIR elfutils/libdw.h | ||
HINTS ${LIBDW_PREFIX}/include | ||
) | ||
|
||
find_library(LIBDW_LIBRARY | ||
NAMES dw | ||
HINTS ${LIBDW_PREFIX}/lib | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LIBDW DEFAULT_MSG | ||
LIBDW_LIBRARY | ||
LIBDW_INCLUDE_DIR | ||
) | ||
|
||
mark_as_advanced( | ||
LIBDW_INCLUDE_DIR | ||
LIBDW_LIBRARY | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters