mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
build: cmake cleanup (#22251)
- Remove unused code - Use consistent casing. Variable names such as LibLuV_LIBRARIES is needlessly jarring, even if the name might be technically correct. - Use title casing for packages. find_package(unibilium) requires the find_module to be named "Findunibilium.cmake", which makes it harder to spot when scanning the files. Instead, use "Unibilium".
This commit is contained in:
9
cmake/FindLibtermkey.cmake
Normal file
9
cmake/FindLibtermkey.cmake
Normal file
@@ -0,0 +1,9 @@
|
||||
find_path(LIBTERMKEY_INCLUDE_DIR termkey.h)
|
||||
find_library(LIBTERMKEY_LIBRARY NAMES termkey)
|
||||
find_package_handle_standard_args(Libtermkey DEFAULT_MSG
|
||||
LIBTERMKEY_LIBRARY LIBTERMKEY_INCLUDE_DIR)
|
||||
mark_as_advanced(LIBTERMKEY_INCLUDE_DIR LIBTERMKEY_LIBRARY)
|
||||
|
||||
add_library(libtermkey INTERFACE)
|
||||
target_include_directories(libtermkey SYSTEM BEFORE INTERFACE ${LIBTERMKEY_INCLUDE_DIR})
|
||||
target_link_libraries(libtermkey INTERFACE ${LIBTERMKEY_LIBRARY})
|
||||
Reference in New Issue
Block a user