forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also use the system luv in CI for the with-external-deps job.
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 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,5 +1,14 @@ | ||
find_path(LIBLUV_INCLUDE_DIR luv/luv.h) | ||
find_library(LIBLUV_LIBRARY NAMES luv_a luv libluv_a luv.so) | ||
find_library(LIBLUV_LIBRARY NAMES luv_a luv libluv_a) | ||
|
||
# Ubuntu-specific workaround to find system paths | ||
function(ubuntu) | ||
set(CMAKE_FIND_LIBRARY_PREFIXES "") | ||
find_path(LIBLUV_INCLUDE_DIR luv/luv.h PATH_SUFFIXES lua5.1) | ||
find_library(LIBLUV_LIBRARY NAMES luv PATH_SUFFIXES lua/5.1) | ||
endfunction() | ||
ubuntu() | ||
|
||
find_package_handle_standard_args(Libluv DEFAULT_MSG | ||
LIBLUV_LIBRARY LIBLUV_INCLUDE_DIR) | ||
mark_as_advanced(LIBLUV_INCLUDE_DIR LIBLUV_LIBRARY) |