mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -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
15 lines
465 B
CMake
15 lines
465 B
CMake
find_path(LUV_INCLUDE_DIR luv/luv.h)
|
|
find_library(LUV_LIBRARY NAMES luv_a luv libluv_a)
|
|
|
|
# Ubuntu-specific workaround to find system paths
|
|
function(ubuntu)
|
|
set(CMAKE_FIND_LIBRARY_PREFIXES "")
|
|
find_path(LUV_INCLUDE_DIR luv/luv.h PATH_SUFFIXES lua5.1)
|
|
find_library(LUV_LIBRARY NAMES luv PATH_SUFFIXES lua/5.1)
|
|
endfunction()
|
|
ubuntu()
|
|
|
|
find_package_handle_standard_args(Luv DEFAULT_MSG
|
|
LUV_LIBRARY LUV_INCLUDE_DIR)
|
|
mark_as_advanced(LUV_INCLUDE_DIR LUV_LIBRARY)
|