Commit b99d338
committed
Fix system cityhash setup
cityhash does not provide any CMake packages, so it cannot be imported
with `find_package` or used with the alias `cityhash::cityhash`.
To fix that, we need the following:
1. Use `find_library` to find the `cityhash` library.
2. When `find_library` is used, conditionally link against its result.
Signed-off-by: Ruoyu Zhong <[email protected]>1 parent 5a140ad commit b99d338
2 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | | - | |
46 | 51 | | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments