-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89e18ae
commit d021250
Showing
4 changed files
with
42 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# - Try to find dwarfutils | ||
|
||
if (DWARFUTILS_LIBRARIES AND DWARFUTILS_INCLUDE_DIRS) | ||
set (DWARFUTILS_FIND_QUIETLY ON) | ||
endif (DWARFUTILS_LIBRARIES AND DWARFUTILS_INCLUDE_DIRS) | ||
|
||
find_path (DWARFUTILS_INCLUDE_DIR | ||
NAMES | ||
libdwarf.h | ||
PATHS | ||
/usr/local/opt/dwarfutils/include/libdwarf-0/ | ||
/opt/homebrew/opt/dwarfutils/include/libdwarf-0/ | ||
ENV CPATH) | ||
|
||
find_library (DWARFUTILS_LIBRARY | ||
NAMES | ||
dwarf | ||
PATHS | ||
/usr/local/opt/dwarfutils/lib/ | ||
/opt/homebrew/opt/dwarfutils/lib/ | ||
ENV LIBRARY_PATH | ||
ENV LD_LIBRARY_PATH) | ||
|
||
include (FindPackageHandleStandardArgs) | ||
|
||
|
||
# handle the QUIETLY and REQUIRED arguments and set DWARFUTILS_FOUND to TRUE if all listed variables are TRUE | ||
find_package_handle_standard_args(dwarfutils DEFAULT_MSG | ||
DWARFUTILS_LIBRARY | ||
DWARFUTILS_INCLUDE_DIR) | ||
|
||
mark_as_advanced(DWARFUTILS_INCLUDE_DIR DWARFUTILS_LIBRARY) | ||
|
||
set(DWARFUTILS_LIBRARIES ${DWARFUTILS_LIBRARY} ) | ||
set(DWARFUTILS_INCLUDE_DIRS ${DWARFUTILS_INCLUDE_DIR} ) |
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