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)
|
if(NOT QT4_FOUND)
|
||||||
message(SEND_ERROR "Failed to find Qt 4.4 or greater.")
|
message(SEND_ERROR "Failed to find Qt 4.4 or greater.")
|
||||||
else()
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${QT_USE_FILE})
|
include(${QT_USE_FILE})
|
||||||
set(CMAKE_PACKAGE_QTGUI TRUE)
|
set(CMAKE_PACKAGE_QTGUI TRUE)
|
||||||
@ -119,5 +120,3 @@ else()
|
|||||||
|
|
||||||
configure_file("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in"
|
configure_file("${QtDialog_SOURCE_DIR}/QtDialogCPack.cmake.in"
|
||||||
"${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY)
|
"${QtDialog_BINARY_DIR}/QtDialogCPack.cmake" @ONLY)
|
||||||
endif()
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user