aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-06-25 17:34:28 +0200
committerGitHub <noreply@github.com>2019-06-25 17:34:28 +0200
commit3e6f06f5d2bea05767c62420b4a73a0c266f7f5a (patch)
treebebc208df4cade36dac41d6040787834d22f16ff
parente13ae7cae641bde5cd744378051d0a7f8b892d33 (diff)
downloadrneovim-3e6f06f5d2bea05767c62420b4a73a0c266f7f5a.tar.gz
rneovim-3e6f06f5d2bea05767c62420b4a73a0c266f7f5a.tar.bz2
rneovim-3e6f06f5d2bea05767c62420b4a73a0c266f7f5a.zip
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.
-rw-r--r--third-party/CMakeLists.txt2
-rw-r--r--third-party/cmake/BuildLuarocks.cmake1
2 files changed, 1 insertions, 2 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt
index 90581462d7..d789e48299 100644
--- a/third-party/CMakeLists.txt
+++ b/third-party/CMakeLists.txt
@@ -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
diff --git a/third-party/cmake/BuildLuarocks.cmake b/third-party/cmake/BuildLuarocks.cmake
index 1f707ddd8a..2ae0e84ecd 100644
--- a/third-party/cmake/BuildLuarocks.cmake
+++ b/third-party/cmake/BuildLuarocks.cmake
@@ -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