diff --git a/CMakeLists.txt b/CMakeLists.txt index 697fb9049f..f58bc0f7f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -381,6 +381,7 @@ if (LIBELF_FOUND) endif() if (LIBDW_FOUND) set(HAVE_LIBDW 1) + check_library_exists(dw dwelf_elf_begin "" HAVE_DWELF_ELF_BEGIN) endif() check_symbol_exists(GLOB_ONLYDIR "glob.h" HAVE_GLOB_ONLYDIR)