[mlpack-svn] r12012 - mlpack/trunk

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Sun Mar 25 23:36:19 EDT 2012


Author: rcurtin
Date: 2012-03-25 23:36:19 -0400 (Sun, 25 Mar 2012)
New Revision: 12012

Modified:
   mlpack/trunk/CMakeLists.txt
Log:
Search for iconv.h on Windows systems.


Modified: mlpack/trunk/CMakeLists.txt
===================================================================
--- mlpack/trunk/CMakeLists.txt	2012-03-26 02:05:19 UTC (rev 12011)
+++ mlpack/trunk/CMakeLists.txt	2012-03-26 03:36:19 UTC (rev 12012)
@@ -112,6 +112,17 @@
       if it is not present MLPACK may not work.")
   endif (NOT ICONV_LIBRARY)
 
+  find_file(ICONV_HEADER
+      iconv.h
+      HINTS ${LIBXML2_INCLUDE_DIR})
+  if (NOT ICONV_HEADER)
+    message(FATAL_ERROR "iconv.h not found!  It can be placed in a standard
+        include directory or the LibXml2 include directory.")
+  endif (NOT ICONV_HEADER)
+  # Add the directory containing iconv.h to the include directories.
+  get_filename_component(ICONV_H_DIR ${ICONV_HEADER} ABSOLUTE)
+  include_directories(${ICONV_H_DIR})
+
   # Reset suffixes.
   set(CMAKE_FIND_LIBRARY_SUFFIXES "${CMAKE_OLD_SUFFIXES}")
 endif (WIN32)




More information about the mlpack-svn mailing list