Add a return-after-error if an old Qt is found.
No need for an else after a return.
This commit is contained in:
parent
8f996a96f4
commit
bd728f6fee
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue