mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
build: use main cmake modules with third-party (#10330)
This is meant to make it possible to use `find_package(LuaJit)` etc with the third-party CMake project in general. Followup to https://github.com/neovim/neovim/pull/10297/files#r296439576.
This commit is contained in:
parent
e13ae7cae6
commit
3e6f06f5d2
2
third-party/CMakeLists.txt
vendored
2
third-party/CMakeLists.txt
vendored
@ -6,7 +6,7 @@ project(NVIM_DEPS)
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
# Point CMake at any custom modules we may ship
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" "${PROJECT_SOURCE_DIR}/../cmake")
|
||||
|
||||
# In Windows/MSVC CMAKE_BUILD_TYPE changes the paths/linking of the build
|
||||
# recipes (libuv, msgpack), make sure it is set
|
||||
|
1
third-party/cmake/BuildLuarocks.cmake
vendored
1
third-party/cmake/BuildLuarocks.cmake
vendored
@ -59,7 +59,6 @@ if(UNIX OR (MINGW AND CMAKE_CROSSCOMPILING))
|
||||
list(APPEND LUAROCKS_OPTS
|
||||
--with-lua=${HOSTDEPS_INSTALL_DIR})
|
||||
else()
|
||||
list(APPEND CMAKE_MODULE_PATH "../cmake")
|
||||
find_package(LuaJit)
|
||||
if(LUAJIT_FOUND)
|
||||
list(APPEND LUAROCKS_OPTS
|
||||
|
Loading…
Reference in New Issue
Block a user