Liu Dongmiao 51752fa14b libevent2: make cmake use relative imported path
libevent2's cmake use absolute path, then cmake cannot find it when cross compiling:

```
-- Found libevent include directory: /builder/staging_dir/target-mips_24kc_musl/usr/include
-- Found libevent component: /builder/staging_dir/target-mips_24kc_musl/usr/lib/libevent_core.so
-- Found libevent component: /builder/staging_dir/target-mips_24kc_musl/usr/lib/libevent_extra.so
-- Found libevent component: /builder/staging_dir/target-mips_24kc_musl/usr/lib/libevent_openssl.so
-- Found libevent 2.1.12 in /builder/staging_dir/target-mips_24kc_musl/usr
CMake Error at /builder/staging_dir/target-mips_24kc_musl/usr/lib/cmake/libevent/LibeventTargets-shared.cmake:102 (message):
  The imported target "libevent::core" references the file

     "/usr/lib/libevent_core-2.1.so.7.0.1"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/builder/staging_dir/target-mips_24kc_musl/usr/lib/cmake/libevent/LibeventTargets-shared.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /builder/staging_dir/target-mips_24kc_musl/usr/lib/cmake/libevent/LibeventConfig.cmake:168 (include)
  CMakeLists.txt:34 (find_package)
```

This patch make cmake use relative imported path, so it can find libevent.

Signed-off-by: Liu Dongmiao <liudongmiao@gmail.com>
2024-03-13 00:24:43 +00:00
..
2023-10-17 11:05:16 +02:00
2023-11-30 13:35:27 -08:00
2024-01-30 10:39:21 +01:00
2023-05-22 18:51:31 +02:00
2023-10-12 09:50:06 +02:00
2023-10-12 09:50:25 +02:00
2022-09-06 16:36:44 +01:00
2022-09-06 16:36:45 +01:00
2023-07-18 14:37:19 +02:00
2024-01-04 16:06:44 +01:00
2023-05-18 10:14:13 +02:00
2023-10-29 19:42:32 +01:00
2022-07-10 19:07:47 +02:00
2024-01-25 17:31:50 +01:00
2022-09-07 04:22:40 +01:00
2024-02-13 12:34:56 +01:00
2024-03-08 22:46:32 +01:00
2024-01-04 22:40:05 +01:00
2023-02-26 01:12:02 +01:00
2023-07-19 15:25:35 +02:00
2024-02-02 08:46:52 +03:00
2023-09-25 23:06:33 +02:00
2022-10-23 18:16:22 +02:00
2024-01-02 18:23:09 +01:00
2024-02-02 17:26:29 +01:00