ubuntu 20.04 x64
vcpkg.json
{
"dependencies": [
"spdlog",
"mimalloc",
"magic-enum",
"boost",
"libdwarf"
],
"builtin-baseline": "53bef8994c541b6561884a8395ea35715ece75db"
}
find_package(libdwarf CONFIG REQUIRED)
# Also requires one of: libbfd (gnu binutils), libdwarf, libdw (elfutils)
FetchContent_Declare(
backward
GIT_REPOSITORY https://github.com/yhyu13/backward-cpp
GIT_TAG 51f0700452cf71c57d43c2d028277b24cde32502 # or a version tag, such as v1.6
GIT_SHALLOW 1 # optional ( --depth=1 )
SYSTEM # optional, the Backward include directory will be treated as system directory
)
FetchContent_MakeAvailable(backward)
Cmake output
-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR)
-- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR)
-- Could NOT find libdwarf (missing: LIBELF_LIBRARY LIBELF_INCLUDE_DIR)
My main targe could find and link with libdwarf, but it seems backward.cpp cannot?
ubuntu 20.04 x64
vcpkg.json
Cmake output
My main targe could find and link with libdwarf, but it seems backward.cpp cannot?