aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-22 09:38:10 +0100
committerGitHub <noreply@github.com>2018-02-22 09:38:10 +0100
commit8c8cf46c7100deb61d26e68241d86c20faace85b (patch)
tree97a835fd72468e96284430a0efaec1fd23fff88b
parent4696a5a10e16ca5c571e6b69248c5a8ee9685fda (diff)
parentef0a07c073665c0868294fcc73b1344aca62b133 (diff)
downloadrneovim-8c8cf46c7100deb61d26e68241d86c20faace85b.tar.gz
rneovim-8c8cf46c7100deb61d26e68241d86c20faace85b.tar.bz2
rneovim-8c8cf46c7100deb61d26e68241d86c20faace85b.zip
Merge #8044 'build: improve Lua module checks'
-rw-r--r--cmake/LuaHelpers.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmake/LuaHelpers.cmake b/cmake/LuaHelpers.cmake
index 32f7e46a57..3cba47412b 100644
--- a/cmake/LuaHelpers.cmake
+++ b/cmake/LuaHelpers.cmake
@@ -4,9 +4,8 @@
# Check if a module is available in Lua
function(check_lua_module LUA_PRG_PATH MODULE RESULT_VAR)
- execute_process(COMMAND ${LUA_PRG_PATH} -e "require('${MODULE}')"
- RESULT_VARIABLE module_missing
- ERROR_QUIET)
+ execute_process(COMMAND ${LUA_PRG_PATH} -l "${MODULE}" -e ""
+ RESULT_VARIABLE module_missing)
if(module_missing)
set(${RESULT_VAR} False PARENT_SCOPE)
else()