Commit e30fb97
authored
Add Alias library for Drogon with name matching installed target (#2456)
- When using the library as a downloaded package, either by using as a
submodule or downloading the source, we can only link to it by using
the project name which is "drogon"
- We can add an Alias library with the same target name that is used
when the project is installed.
- This way the cmake "target_link_library" Command would always refer to the
library by the same name which is "Drogon::Drogon" while also avoiding
the pitfall of the default behaviour of the command just adding the the target name to the
link arguments if the library isn't found.
Co-authored-by: Mathew Benson <mathew@benson.co.ke>1 parent 597e15c commit e30fb97
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
0 commit comments