aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-11-09 08:31:33 -0500
committerJohn Szakmeister <john@szakmeister.net>2014-11-09 08:31:33 -0500
commitdcccc1a50de3caea62ab12f9e15fc6f3e242b5c4 (patch)
tree54cb86c36c23f800cdf2d6a00a66fbd5fe14114d /cmake
parentc744bb8144b5dd14c014817b9250aa5325d53cfe (diff)
parent9344a40e741557948215dfeb4ae32b7c0d6d7b6b (diff)
downloadrneovim-dcccc1a50de3caea62ab12f9e15fc6f3e242b5c4.tar.gz
rneovim-dcccc1a50de3caea62ab12f9e15fc6f3e242b5c4.tar.bz2
rneovim-dcccc1a50de3caea62ab12f9e15fc6f3e242b5c4.zip
Merge pull request #1437 from jszakmeister/build-search-fixes
A few fixes for some build-related issues.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindIconv.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake
new file mode 100644
index 0000000000..f3a54e9d6f
--- /dev/null
+++ b/cmake/FindIconv.cmake
@@ -0,0 +1,18 @@
+# - Try to find iconv
+# Once done, this will define
+#
+# Iconv_FOUND - system has iconv
+# Iconv_INCLUDE_DIRS - the iconv include directories
+# Iconv_LIBRARIES - link these to use iconv
+
+include(LibFindMacros)
+
+find_path(ICONV_INCLUDE_DIR NAMES iconv.h)
+find_library(ICONV_LIBRARY NAMES iconv)
+
+set(Iconv_PROCESS_INCLUDES ICONV_INCLUDE_DIR)
+if(ICONV_LIBRARY)
+ set(Iconv_PROCESS_LIBS ICONV_LIBRARY)
+endif()
+
+libfind_process(Iconv)