[vlmc-devel] cmake: Remove "Xml"

Yikai Lu git at videolan.org
Sat Apr 9 22:18:17 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Apr  9 11:44:15 2016 +0900| [ad7f0628cf74ff451f7160123e3f2aaffd13af3a] | committer: Hugo Beauzée-Luyssen

cmake: Remove "Xml"

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/ad7f0628cf74ff451f7160123e3f2aaffd13af3a
---

 src/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4b34868..0fda9f5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -12,9 +12,9 @@ find_package(Qt5Core QUIET)
 if (Qt5Core_FOUND)
     # go on with other packages
     if(WITH_GUI)
-        find_package(Qt5 COMPONENTS Widgets Gui Xml Network)
+        find_package(Qt5 COMPONENTS Widgets Gui Network)
     else()
-        find_package(Qt5 COMPONENTS Xml Network)
+        find_package(Qt5 COMPONENTS Network)
     endif()
 endif()
 
@@ -120,7 +120,7 @@ IF (NOT WITH_GUI)
     LIST (APPEND VLMC_SRCS Main/main.cpp Renderer/ConsoleRenderer.cpp )
     qt5_add_resources(VLMC_RCC_SRCS ${VLMC_RCC})
     ADD_EXECUTABLE(vlmc ${GUI_TYPE} ${VLMC_SRCS} ${VLMC_MOC_SRCS} ${VLMC_RCC_SRCS})
-    qt5_use_modules(vlmc Core Xml Network)
+    qt5_use_modules(vlmc Core Network)
     TARGET_LINK_LIBRARIES(vlmc ${VLMC_LIBS})
 
 #Add GUI stuff if required
@@ -272,7 +272,7 @@ ELSE(NOT WITH_GUI)
     ADD_EXECUTABLE( vlmc ${GUI_TYPE} ${VLMC_SRCS} ${VLMC_MOC_SRCS} ${VLMC_UIS_H} ${VLMC_RCC_SRCS} ${VLMC_QMS} )
     TARGET_LINK_LIBRARIES( vlmc ${VLMC_LIBS} )
     if (NOT Qt4_FOUND)
-        qt5_use_modules(vlmc Core Gui Widgets Xml Network)
+        qt5_use_modules(vlmc Core Gui Widgets Network)
     else()
         # We need to know the target for this one, which is not the case when doing most of the QT4/5 specific stuff.
         # We could hide this command in qt_use_modules macro, but this would be some kind of black magic uglyness



More information about the Vlmc-devel mailing list