]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
If we need iconv.h to do a test build, then we'll need it for the real
authorTim Kientzle <kientzle@gmail.com>
Fri, 5 Mar 2010 04:48:48 +0000 (23:48 -0500)
committerTim Kientzle <kientzle@gmail.com>
Fri, 5 Mar 2010 04:48:48 +0000 (23:48 -0500)
build as well.

SVN-Revision: 2008

CMakeLists.txt

index 3e3eba068b56648dff54bcb18b189c491b6a9898..84f8687d04afec3c1fc53d9de015ab6f530e0f31 100644 (file)
@@ -349,6 +349,7 @@ IF(LIBXML2_FOUND)
   # We need a directory path of iconv.h so that it won't fail to check
   # "libxml/xmlreader.h".
   FIND_PATH(ICONV_INCLUDE_DIR iconv.h)
+  INCLUDE_DIRECTORIES(${ICONV_INCLUDE_DIR})
   SET(CMAKE_REQUIRED_INCLUDES ${ICONV_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR})
   CHECK_INCLUDE_FILES("libxml/xmlreader.h" HAVE_LIBXML_XMLREADER_H)
   SET(CMAKE_REQUIRED_INCLUDES "")