aboutsummaryrefslogtreecommitdiff
path: root/cmake/FindLibLUV.cmake
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-26 22:32:08 +0100
committerGitHub <noreply@github.com>2023-02-26 22:32:08 +0100
commit1e37703a74eeebfa14c401db865157c39f1215bf (patch)
treed5407e5aa49490b748f123c62182115045df15e7 /cmake/FindLibLUV.cmake
parent774e59f3f9bf50c8350857c6722bb58df2dd940a (diff)
downloadrneovim-1e37703a74eeebfa14c401db865157c39f1215bf.tar.gz
rneovim-1e37703a74eeebfa14c401db865157c39f1215bf.tar.bz2
rneovim-1e37703a74eeebfa14c401db865157c39f1215bf.zip
build: remove pkgconfig-related code (#22422)
Cmake should already be able to find everything on its own.
Diffstat (limited to 'cmake/FindLibLUV.cmake')
-rw-r--r--cmake/FindLibLUV.cmake19
1 files changed, 2 insertions, 17 deletions
diff --git a/cmake/FindLibLUV.cmake b/cmake/FindLibLUV.cmake
index 23b62b66d3..8fc2c8509b 100644
--- a/cmake/FindLibLUV.cmake
+++ b/cmake/FindLibLUV.cmake
@@ -1,24 +1,9 @@
-# - Try to find luv
-# Once done this will define
-# LIBLUV_FOUND - System has libluv
-# LIBLUV_INCLUDE_DIRS - The libluv include directories
-# LIBLUV_LIBRARIES - The libraries needed to use libluv
-
-find_package(PkgConfig)
-if (PKG_CONFIG_FOUND)
- pkg_check_modules(PC_LIBLUV QUIET luv)
-endif()
-
-set(LIBLUV_DEFINITIONS ${PC_LIBLUV_CFLAGS_OTHER})
-
-find_path(LIBLUV_INCLUDE_DIR luv/luv.h
- PATHS ${PC_LIBLUV_INCLUDEDIR} ${PC_LIBLUV_INCLUDE_DIRS})
+find_path(LIBLUV_INCLUDE_DIR luv/luv.h)
# Explicitly look for luv.so. #10407
list(APPEND LIBLUV_NAMES luv_a luv libluv_a luv${CMAKE_SHARED_LIBRARY_SUFFIX})
-find_library(LIBLUV_LIBRARY NAMES ${LIBLUV_NAMES}
- HINTS ${PC_LIBLUV_LIBDIR} ${PC_LIBLUV_LIBRARY_DIRS})
+find_library(LIBLUV_LIBRARY NAMES ${LIBLUV_NAMES})
set(LIBLUV_LIBRARIES ${LIBLUV_LIBRARY})
set(LIBLUV_INCLUDE_DIRS ${LIBLUV_INCLUDE_DIR})