qatsh/CMakeLists.txt: Set OPTION_QT5 by default
Qt4 has been already end-of-life for some time, so it does not make sense to target it any more. Qt5 support had been already introduced by previous commits, so it makes sense to target it by default.
This commit is contained in:
parent
a2fc226a31
commit
524a1f8f72
|
@ -8,7 +8,7 @@ message(STATUS "Configuring qatsh ...")
|
||||||
# External dependencies.
|
# External dependencies.
|
||||||
# 1) Qt (4 or 5)
|
# 1) Qt (4 or 5)
|
||||||
if(NOT DEFINED OPTION_QT5 OR NOT OPTION_QT5)
|
if(NOT DEFINED OPTION_QT5 OR NOT OPTION_QT5)
|
||||||
SET(OPTION_QT5 Off CACHE BOOL "Check to build with Qt 5 (rather than Qt 4)" FORCE)
|
SET(OPTION_QT5 ON CACHE BOOL "Check to build with Qt 5 (rather than Qt 4)" FORCE)
|
||||||
endif()
|
endif()
|
||||||
if(NOT OPTION_QT5)
|
if(NOT OPTION_QT5)
|
||||||
find_package(Qt4 4.4 COMPONENTS QtCore QtGui REQUIRED)
|
find_package(Qt4 4.4 COMPONENTS QtCore QtGui REQUIRED)
|
||||||
|
|
Loading…
Reference in New Issue