diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-26 22:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 22:32:08 +0100 |
commit | 1e37703a74eeebfa14c401db865157c39f1215bf (patch) | |
tree | d5407e5aa49490b748f123c62182115045df15e7 /cmake/FindLuaJit.cmake | |
parent | 774e59f3f9bf50c8350857c6722bb58df2dd940a (diff) | |
download | rneovim-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/FindLuaJit.cmake')
-rw-r--r-- | cmake/FindLuaJit.cmake | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/cmake/FindLuaJit.cmake b/cmake/FindLuaJit.cmake index 72795afefd..d89e3d7dfa 100644 --- a/cmake/FindLuaJit.cmake +++ b/cmake/FindLuaJit.cmake @@ -1,18 +1,4 @@ -# - Try to find luajit -# Once done this will define -# LUAJIT_FOUND - System has luajit -# LUAJIT_INCLUDE_DIRS - The luajit include directories -# LUAJIT_LIBRARIES - The libraries needed to use luajit - -find_package(PkgConfig) -if (PKG_CONFIG_FOUND) - pkg_check_modules(PC_LUAJIT QUIET luajit) -endif() - -set(LUAJIT_DEFINITIONS ${PC_LUAJIT_CFLAGS_OTHER}) - find_path(LUAJIT_INCLUDE_DIR luajit.h - PATHS ${PC_LUAJIT_INCLUDEDIR} ${PC_LUAJIT_INCLUDE_DIRS} PATH_SUFFIXES luajit-2.0 luajit-2.1) if(MSVC) @@ -23,8 +9,7 @@ else() list(APPEND LUAJIT_NAMES luajit-5.1) endif() -find_library(LUAJIT_LIBRARY NAMES ${LUAJIT_NAMES} - PATHS ${PC_LUAJIT_LIBDIR} ${PC_LUAJIT_LIBRARY_DIRS}) +find_library(LUAJIT_LIBRARY NAMES ${LUAJIT_NAMES}) set(LUAJIT_LIBRARIES ${LUAJIT_LIBRARY}) set(LUAJIT_INCLUDE_DIRS ${LUAJIT_INCLUDE_DIR}) |