summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPavon <pavon@protonmail.com>2021-07-16 15:02:44 -0600
committermormj <34754695+mormj@users.noreply.github.com>2021-07-20 07:37:18 -0400
commitcd4a47de989ca83e31a48661673b1e12ca417502 (patch)
tree8713c27386eb2bfd4e8709da80918e87aaaebff7 /cmake
parent256953bebab151c50fd9a32156f75d2aabc14c17 (diff)
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 <pavon@protonmail.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/Findlibunwind.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/Findlibunwind.cmake b/cmake/Modules/Findlibunwind.cmake
index 07d5621b69..ec72aeb30f 100644
--- a/cmake/Modules/Findlibunwind.cmake
+++ b/cmake/Modules/Findlibunwind.cmake
@@ -25,7 +25,7 @@ find_library(libunwind_LIBRARY
# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
-set(libunwind_PROCESS_INCLUDES ${libunwind_INCLUDE_DIR})
+set(libunwind_PROCESS_INCLUDES libunwind_INCLUDE_DIR)
set(libunwind_PROCESS_LIBS libunwind_LIBRARY)
libfind_process(libunwind)