From 965505e465b39135655a0833f9975ca4aa24b8b5 Mon Sep 17 00:00:00 2001 From: hades Date: Sat, 13 Jan 2024 20:18:25 +0100 Subject: [PATCH] fix locating libunwind without pkgconfig (#76) The call to find_path used an incorrect variable name, that wasn't included in the target_include_directories call. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 418afae..2ee0339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -389,7 +389,7 @@ if(CPPTRACE_UNWIND_WITH_LIBUNWIND) if(NOT libunwind_FOUND) # set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON) # set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS ON) - find_path(LIBUNWIND_INCLUDE_DIR NAMES "libunwind.h") + find_path(LIBUNWIND_INCLUDE_DIRS NAMES "libunwind.h") find_library(LIBUNWIND NAMES unwind libunwind libunwind8 libunwind.so.8 REQUIRED PATHS "/usr/lib/x86_64-linux-gnu/") if(LIBUNWIND) set(libunwind_FOUND TRUE)