diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-03-02 22:50:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 22:50:43 +0100 |
commit | 4cf4ae93df6af09ef3a0df678bb3d154b65bf731 (patch) | |
tree | e9b47e7b94fe74f1f568cfbca89790716a1c0625 /cmake/FindIconv.cmake | |
parent | f449121764c19cebda7b8b2c970b76bc8121bae7 (diff) | |
download | rneovim-4cf4ae93df6af09ef3a0df678bb3d154b65bf731.tar.gz rneovim-4cf4ae93df6af09ef3a0df678bb3d154b65bf731.tar.bz2 rneovim-4cf4ae93df6af09ef3a0df678bb3d154b65bf731.zip |
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".
Diffstat (limited to 'cmake/FindIconv.cmake')
-rw-r--r-- | cmake/FindIconv.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake index b0ffa1bd75..48c1514ff2 100644 --- a/cmake/FindIconv.cmake +++ b/cmake/FindIconv.cmake @@ -6,3 +6,9 @@ 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() |