From b3b227c8d84d27f97e5bc32c61bb66fdd8ac78b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Wed, 5 Feb 2014 01:23:08 +0200 Subject: [PATCH] cmake: Fix qt version message --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dee919a9..fe9a9371 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() -- 2.22.0