Commit c0c0064
Use real ALIAS(cmake >=3.18) target for flann to preserve properties on original target. (#5861)
* Use real ALIAS target for flann to preserve properties on original target.
With the current method all properties set on the flann::flann_cpp and flann::flann_cpp target are lost, as they are not copied to the new FLANN::FLANN interface target. However, there are cases, where we would like preserve these, e.g. to keep the INTERFACE_INCLUDE_DIRECTORIES property that includes the path to the LZ4 headers. Therefore this patch first checks for the appropriate SHARED or STATIC version and then aliases FLANN::FLANN to the respective library.
* Use appropriate comparison operator
Co-authored-by: Lars Glud <larshg@gmail.com>
* Only use ALIAS Target for CMAKE >= 3.18
* Use appropriate comparison operator
Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com>
---------
Co-authored-by: Lars Glud <larshg@gmail.com>
Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com>1 parent 8c81110 commit c0c0064
1 file changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 51 | | |
55 | 52 | | |
56 | | - | |
57 | 53 | | |
58 | 54 | | |
59 | | - | |
60 | 55 | | |
61 | 56 | | |
62 | 57 | | |
63 | | - | |
64 | 58 | | |
65 | 59 | | |
66 | | - | |
67 | 60 | | |
68 | 61 | | |
69 | 62 | | |
70 | 63 | | |
71 | | - | |
72 | 64 | | |
73 | 65 | | |
74 | | - | |
75 | 66 | | |
76 | 67 | | |
77 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
0 commit comments