Skip to content

Commit

Permalink
Merge pull request #180 from octurion/cmake-vivify
Browse files Browse the repository at this point in the history
Vivify CMake fixes
  • Loading branch information
Mani-D authored Jul 28, 2024
2 parents cdfcf85 + bcd5e83 commit 6fb63e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vivify/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,24 @@ if(NOT DWARF_H_FOUND)
message(WARNING "skipping vivify build. dwarf.h not found!!!")
return()
endif()

set(CMAKE_REQUIRED_DEFINITIONS -DPACKAGE -DPACKAGE_VERSION)
check_include_file("bfd.h" BFD_H_FOUND)
set(CMAKE_REQUIRED_DEFINITIONS)
if(NOT BFD_H_FOUND)
message(WARNING "skipping vivify build. bfd.h not found!!!")
return()
endif()

find_library(LIBELF_FOUND elf)
if(NOT LIBELF_FOUND)
message(WARNING "skipping vivify build. libelf not found!!!")
return()
endif()

set(CMAKE_REQUIRED_DEFINITIONS -DPACKAGE -DPACKAGE_VERSION)
check_symbol_exists(bfd_section_flags "bfd.h" HAVE_BFD_SECTION_FLAGS)
set(CMAKE_REQUIRED_DEFINITIONS)

include_directories(include)
file(GLOB_RECURSE lib_vivify_headers lib/vivify/*.[hH])
Expand Down
1 change: 1 addition & 0 deletions vivify/demo/StackUnwind.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <libunwind-x86_64.h>

#include <cstdlib>
#include <stdexcept>
#include <sstream>
#include <algorithm>

Expand Down

0 comments on commit 6fb63e3

Please sign in to comment.