diff options
author | Pavon <pavon@protonmail.com> | 2021-07-16 15:02:44 -0600 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-07-20 07:37:18 -0400 |
commit | cd4a47de989ca83e31a48661673b1e12ca417502 (patch) | |
tree | 8713c27386eb2bfd4e8709da80918e87aaaebff7 /cmake | |
parent | 256953bebab151c50fd9a32156f75d2aabc14c17 (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.cmake | 2 |
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) |