mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
1086016477
- 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
18 lines
477 B
CMake
18 lines
477 B
CMake
find_path(LUAJIT_INCLUDE_DIR luajit.h
|
|
PATH_SUFFIXES luajit-2.0 luajit-2.1)
|
|
|
|
if(MSVC)
|
|
list(APPEND LUAJIT_NAMES lua51)
|
|
elseif(MINGW)
|
|
list(APPEND LUAJIT_NAMES libluajit libluajit-5.1)
|
|
else()
|
|
list(APPEND LUAJIT_NAMES luajit-5.1)
|
|
endif()
|
|
|
|
find_library(LUAJIT_LIBRARY NAMES ${LUAJIT_NAMES})
|
|
|
|
find_package_handle_standard_args(Luajit DEFAULT_MSG
|
|
LUAJIT_LIBRARY LUAJIT_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LUAJIT_INCLUDE_DIR LUAJIT_LIBRARY)
|