diff options
-rw-r--r-- | cmake/LuaHelpers.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/LuaHelpers.cmake b/cmake/LuaHelpers.cmake index a401ff75df..3cba47412b 100644 --- a/cmake/LuaHelpers.cmake +++ b/cmake/LuaHelpers.cmake @@ -4,7 +4,7 @@ # 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}')" + execute_process(COMMAND ${LUA_PRG_PATH} -l "${MODULE}" -e "" RESULT_VARIABLE module_missing) if(module_missing) set(${RESULT_VAR} False PARENT_SCOPE) |