mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
4cf4ae93df
- 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".
15 lines
560 B
CMake
15 lines
560 B
CMake
# TODO(dundargoc): FindIconv is shipped by default on cmake version 3.11+. This
|
|
# file can be removed once we decide to upgrade minimum cmake version.
|
|
|
|
find_path(ICONV_INCLUDE_DIR NAMES iconv.h)
|
|
find_library(ICONV_LIBRARY NAMES iconv libiconv)
|
|
find_package_handle_standard_args(Iconv DEFAULT_MSG
|
|
ICONV_INCLUDE_DIR)
|
|
mark_as_advanced(ICONV_INCLUDE_DIR ICONV_LIBRARY)
|
|
|
|
add_library(iconv INTERFACE)
|
|
target_include_directories(iconv SYSTEM BEFORE INTERFACE ${ICONV_INCLUDE_DIR})
|
|
if(ICONV_LIBRARY)
|
|
target_link_libraries(iconv INTERFACE ${ICONV_LIBRARY})
|
|
endif()
|