summaryrefslogtreecommitdiff
path: root/libunwind/include
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2022-01-09 00:08:15 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-01-10 21:31:52 +0000
commit914fffc7f2492a1e4bc419a80c30fdb3f9440698 (patch)
tree4996f5fb6bdaebae96876ffabd8268d2284bd217 /libunwind/include
parent4d81a46f7f71559b48568a47edbe6b70a003029e (diff)
downloadllvm-914fffc7f2492a1e4bc419a80c30fdb3f9440698.tar.gz
[libunwind][cmake] Create `LIBUNWIND_INSTALL_INCLUDE_DIR` CACHE PATH
This is created on analogy with the other CACHE PATHs in this package, and other `*_INSTALL_INCLUDE_DIR` in other packages. The branching is adjusted to deduplicate some existing code, and likewise avoid having to define this new variable more than once. This will be used for D99484. Reviewed By: #libunwind, compnerd Differential Revision: https://reviews.llvm.org/D116873
Diffstat (limited to 'libunwind/include')
-rw-r--r--libunwind/include/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/include/CMakeLists.txt b/libunwind/include/CMakeLists.txt
index c3bb1dd0f69f..adf1766c44cb 100644
--- a/libunwind/include/CMakeLists.txt
+++ b/libunwind/include/CMakeLists.txt
@@ -14,7 +14,7 @@ if(LIBUNWIND_INSTALL_HEADERS)
foreach(file ${files})
get_filename_component(dir ${file} DIRECTORY)
install(FILES ${file}
- DESTINATION "include/${dir}"
+ DESTINATION "${LIBUNWIND_INSTALL_INCLUDE_DIR}/${dir}"
COMPONENT unwind-headers
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)