-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libevent] Fix library cannot be found (#14805)
- Loading branch information
1 parent
94fe840
commit 2fbd692
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
diff --git a/cmake/LibeventConfig.cmake.in b/cmake/LibeventConfig.cmake.in | ||
index 7b808c3..fbf67be 100644 | ||
index 7b808c3..9376a5a 100644 | ||
--- a/cmake/LibeventConfig.cmake.in | ||
+++ b/cmake/LibeventConfig.cmake.in | ||
@@ -58,7 +58,7 @@ endif() | ||
|
||
# Get the path of the current file. | ||
get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
-get_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../../.." ABSOLUTE) | ||
+get_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../.." ABSOLUTE) | ||
|
||
macro(message_if_needed _flag _msg) | ||
if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY) | ||
@@ -131,7 +131,7 @@ if(CONFIG_FOR_INSTALL_TREE) | ||
find_library(_event_lib | ||
NAMES "event_${_comp}" | ||
PATHS "${_INSTALL_PREFIX}/lib" | ||
- NO_DEFAULT_PATH) | ||
+ ) | ||
if(_event_lib) | ||
list(APPEND LIBEVENT_LIBRARIES "libevent::${_comp}") | ||
set_case_insensitive_found(${_comp}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters