Commit c31404e
committed
cmake: make installed package relocatable
Remove the absolute include header path from the install target. The
created CMake package still has the right include generated:
```cmake
set_target_properties(libdeflate::libdeflate_static PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
)
```
As mentioned in the
(Creating Relocatable Packages)[https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-relocatable-packages]
section of the CMake documentation packages created with
`install(EXPORT)` are designed to be relocatable.
This also makes it possible to cache the install directory over multiple
computer (for example through a package manager).1 parent d65d5db commit c31404e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments