From bcd5e8353d89c938a7d9a297364d9b3d316886e0 Mon Sep 17 00:00:00 2001 From: Alexandros Tasos <6114420+octurion@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:04:41 +0100 Subject: [PATCH] Fix Vivify build from being skipped --- vivify/CMakeLists.txt | 6 ++++++ vivify/demo/StackUnwind.C | 1 + 2 files changed, 7 insertions(+) diff --git a/vivify/CMakeLists.txt b/vivify/CMakeLists.txt index 2ccae234..272a4cae 100644 --- a/vivify/CMakeLists.txt +++ b/vivify/CMakeLists.txt @@ -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]) diff --git a/vivify/demo/StackUnwind.C b/vivify/demo/StackUnwind.C index 62ea1ea3..92d91e5d 100644 --- a/vivify/demo/StackUnwind.C +++ b/vivify/demo/StackUnwind.C @@ -18,6 +18,7 @@ #include #include +#include #include #include