Add a return-after-error if an old Qt is found.

No need for an else after a return.
This commit is contained in:
Stephen Kelly 2012-08-17 20:09:43 +02:00
parent 8f996a96f4
commit bd728f6fee
1 changed files with 103 additions and 104 deletions

View File

@ -15,7 +15,8 @@ find_package(Qt4 REQUIRED)
if(NOT QT4_FOUND)
message(SEND_ERROR "Failed to find Qt 4.4 or greater.")
else()
return()
endif()
include(${QT_USE_FILE})
set(CMAKE_PACKAGE_QTGUI TRUE)
@ -119,5 +120,3 @@ else()
configure_file("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in"
"${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY)
endif()