[vlmc-devel] cmake: Fix qt version message

Hugo Beauzée-Luyssen git at videolan.org
Wed Feb 5 00:24:33 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Feb  5 01:23:08 2014 +0200| [b3b227c8d84d27f97e5bc32c61bb66fdd8ac78b5] | committer: Hugo Beauzée-Luyssen

cmake: Fix qt version message

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b3b227c8d84d27f97e5bc32c61bb66fdd8ac78b5
---

 CMakeLists.txt |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index dee919a..fe9a937 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,7 +144,9 @@ if (NOT FORCE_QT4)
     endif()
 endif()
 if(NOT Qt5Core_FOUND)
-    message(STATUS "Could not find Qt5, searching for Qt4 instead...")
+	if (NOT FORCE_QT4)
+		message(STATUS "Could not find Qt5, searching for Qt4 instead...")
+	endif()
 
 	set(NEEDED_QT4_COMPONENTS "QtCore" "QtXml" "QtNetwork") 
     if( WITH_GUI )
@@ -152,7 +154,7 @@ if(NOT Qt5Core_FOUND)
     endif()
 
 	find_package(Qt4 REQUIRED COMPONENTS ${NEEDED_QT4_COMPONENTS})
-
+	message(STATUS "Found Qt4 & ${NEEDED_QT4_COMPONENTS} modules")
     macro(qt_use_modules)
 
     endmacro()



More information about the Vlmc-devel mailing list