cmake: clean up libxml2 glue
authorChengwei Yang <chengwei.yang@intel.com>
Fri, 28 Jun 2013 02:18:35 +0000 (10:18 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 28 Jun 2013 10:50:57 +0000 (11:50 +0100)
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66257

cmake/CMakeLists.txt

index 836f4b2..c674351 100644 (file)
@@ -296,10 +296,9 @@ if("${sysname}" MATCHES ".*SOLARIS.*")
     endif(HAVE_CONSOLE_OWNER_FILE)
 endif("${sysname}" MATCHES ".*SOLARIS.*")
 
-#AC_ARG_WITH(xml, AS_HELP_STRING([--with-xml=[libxml/expat]],[XML library to use]))
-if(NOT LIBXML2_FOUND AND NOT EXPAT_FOUND)
-    message(FATAL "Neither expat nor libxml2 found!")
-endif(NOT LIBXML2_FOUND AND NOT EXPAT_FOUND)
+if(NOT EXPAT_FOUND)
+    message(FATAL "expat not found!")
+endif(NOT EXPAT_FOUND)
 
 SET(XML_LIB "Expat")
 SET(XML_LIBRARY     ${EXPAT_LIBRARIES})
@@ -566,7 +565,6 @@ message("        installing system libs:   ${DBUS_INSTALL_SYSTEM_LIBS}         "
 message("        Building Doxygen docs:    ${DBUS_ENABLE_DOXYGEN_DOCS}         ")
 message("        Building XML docs:        ${DBUS_ENABLE_XML_DOCS}             ")
 #message("        Gettext libs (empty OK):  ${INTLLIBS}                         ")
-message("        Using XML parser:         ${XML_LIB}                          ")
 message("        Daemon executable name:   ${DBUS_DAEMON_NAME}")
 if (WIN32)
 message("        System bus address:       ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS}  ")