Skip to content

Commit cd4a47d

Browse files
Pavonmormj
Pavon
authored andcommitted
cmake: Fix finding libunwind
The libfind_process macro expects <lib>_PROCESS_INCLUDES to be set to the names of variables containing the include paths, not the include paths themselves. This was causing find_package(libunwind) to always fail, even when the necessary files were correctly found by find_path and find_library. Signed-off-by: Pavon <[email protected]>
1 parent 256953b commit cd4a47d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Modules/Findlibunwind.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ find_library(libunwind_LIBRARY
2525

2626
# Set the include dir variables and the libraries and let libfind_process do the rest.
2727
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
28-
set(libunwind_PROCESS_INCLUDES ${libunwind_INCLUDE_DIR})
28+
set(libunwind_PROCESS_INCLUDES libunwind_INCLUDE_DIR)
2929
set(libunwind_PROCESS_LIBS libunwind_LIBRARY)
3030
libfind_process(libunwind)
3131

0 commit comments

Comments
 (0)