cmake: Allow switching from luajit to lua

This commit is contained in:
ZyX
2017-01-21 02:33:09 +03:00
parent 666d85d3ce
commit 1646a28173
2 changed files with 14 additions and 3 deletions

View File

@@ -291,8 +291,12 @@ list(APPEND NVIM_LINK_LIBRARIES
${LIBTERMKEY_LIBRARIES}
${UNIBILIUM_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${LUAJIT_LIBRARIES}
)
if(PREFER_LUAJIT)
list(APPEND NVIM_LINK_LIBRARIES ${LUAJIT_LIBRARIES})
else()
list(APPEND NVIM_LINK_LIBRARIES ${LUA_LIBRARIES})
endif()
if(UNIX)
list(APPEND NVIM_LINK_LIBRARIES