diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-05-13 12:12:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 12:12:29 +0200 |
commit | 10860164778327c0009f6efc8e020308cadb13a2 (patch) | |
tree | 735513c4c2943080f5e554e8699f623fe6ecea06 /cmake/LuaHelpers.cmake | |
parent | ed8c44f76762061e30cb8056483f55d38802eaef (diff) | |
download | rneovim-10860164778327c0009f6efc8e020308cadb13a2.tar.gz rneovim-10860164778327c0009f6efc8e020308cadb13a2.tar.bz2 rneovim-10860164778327c0009f6efc8e020308cadb13a2.zip |
build: cmake cleanup
- Simplify error checking when using execute_process.
- Set BUILD_SHARED_LIBS to OFF when building dependencies.
This is normally not needed, but msgpack interprets an unset
BUILD_SHARED_LIBS to build a shared library, which is the opposite of
the cmake behavior.
- Move function check_lua_module to Util.cmake.
- Remove unnecessary code.
- Make variable naming more consistent
Diffstat (limited to 'cmake/LuaHelpers.cmake')
-rw-r--r-- | cmake/LuaHelpers.cmake | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cmake/LuaHelpers.cmake b/cmake/LuaHelpers.cmake deleted file mode 100644 index 00ecd1357f..0000000000 --- a/cmake/LuaHelpers.cmake +++ /dev/null @@ -1,14 +0,0 @@ -# -# Functions to help checking for a Lua interpreter -# - -# Check if a module is available in Lua -function(check_lua_module LUA_PRG_PATH MODULE RESULT_VAR) - execute_process(COMMAND ${LUA_PRG_PATH} -l "${MODULE}" -e "" - RESULT_VARIABLE module_missing) - if(module_missing) - set(${RESULT_VAR} False PARENT_SCOPE) - else() - set(${RESULT_VAR} True PARENT_SCOPE) - endif() -endfunction() |