aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index a47a8e49c7..7a7dbbcce6 100644
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -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