another directory rename: failstar -> fail
"failstar" sounds like a name for a cruise liner from the 80s. As "*" isn't a desirable part of directory names, just name the whole thing "fail/", the core parts being stored in "fail/core/". Additionally fixing two build system dependency issues: - missing jobserver -> protomessages dependency - broken bochs -> fail dependency (add_custom_target DEPENDS only allows plain file dependencies ... cmake for the win) git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@956 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
62
cmake/FindLibDwarf.cmake
Normal file
62
cmake/FindLibDwarf.cmake
Normal file
@ -0,0 +1,62 @@
|
||||
# - Try to find libdwarf
|
||||
# Once done this will define
|
||||
#
|
||||
# LIBDWARF_FOUND - system has libdwarf
|
||||
# LIBDWARF_INCLUDE_DIRS - the libdwarf include directory
|
||||
# LIBDWARF_LIBRARIES - Link these to use libdwarf
|
||||
# LIBDWARF_DEFINITIONS - Compiler switches required for using libdwarf
|
||||
#
|
||||
|
||||
# Locate libelf library at first
|
||||
if (NOT LIBELF_FOUND)
|
||||
find_package (LibElf REQUIRED)
|
||||
endif (NOT LIBELF_FOUND)
|
||||
|
||||
if (LIBDWARF_LIBRARIES AND LIBDWARF_INCLUDE_DIRS)
|
||||
set (LibDwarf_FIND_QUIETLY TRUE)
|
||||
endif (LIBDWARF_LIBRARIES AND LIBDWARF_INCLUDE_DIRS)
|
||||
|
||||
find_path (DWARF_INCLUDE_DIR
|
||||
NAMES
|
||||
dwarf.h
|
||||
PATHS
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
/opt/local/include
|
||||
/sw/include
|
||||
ENV CPATH) # PATH and INCLUDE will also work
|
||||
#find_path (LIBDW_INCLUDE_DIR
|
||||
# NAMES
|
||||
# elfutils/libdw.h
|
||||
# PATHS
|
||||
# /usr/include
|
||||
# /usr/local/include
|
||||
# /opt/local/include
|
||||
# /sw/include
|
||||
# ENV CPATH)
|
||||
if (DWARF_INCLUDE_DIR) # AND LIBDW_INCLUDE_DIR)
|
||||
set (LIBDWARF_INCLUDE_DIRS ${DWARF_INCLUDE_DIR} )
|
||||
endif (DWARF_INCLUDE_DIR)
|
||||
|
||||
find_library (LIBDWARF_LIBRARIES
|
||||
NAMES
|
||||
dwarf
|
||||
PATHS
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
||||
/sw/lib
|
||||
ENV LIBRARY_PATH # PATH and LIB will also work
|
||||
ENV LD_LIBRARY_PATH)
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set LIBDWARF_FOUND to TRUE
|
||||
# if all listed variables are TRUE
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibDwarf DEFAULT_MSG
|
||||
LIBDWARF_LIBRARIES
|
||||
LIBDWARF_INCLUDE_DIRS)
|
||||
|
||||
mark_as_advanced(LIBDW_INCLUDE_DIR DWARF_INCLUDE_DIR)
|
||||
mark_as_advanced(LIBDWARF_INCLUDE_DIRS LIBDWARF_LIBRARIES)
|
||||
Reference in New Issue
Block a user