summary refs log tree commit diff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-30 14:35:01 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-30 14:35:01 +0300
commit04ef88bbbb9c1409a446f0741a65765c89d7e11d (patch)
tree7cbf2957719fd233ee8efb6607657c6246f98fa8 /CMakeLists.txt
parentCreate a named device on login (diff)
downloadnheko-04ef88bbbb9c1409a446f0741a65765c89d7e11d.tar.xz
Explicitly define 5.7 as the minimum required Qt version
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt

index 4b36ad11..d6835e38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -8,6 +8,13 @@ find_package(Qt5Widgets REQUIRED) find_package(Qt5Network REQUIRED) find_package(Qt5LinguistTools REQUIRED) +if (Qt5Widgets_FOUND) + if (Qt5Widgets_VERSION VERSION_LESS 5.7.0) + message(STATUS "Qt version ${Qt5Widgets_VERSION}") + message(FATAL_ERROR "Minimum supported Qt5 version is 5.7!") + endif() +endif(Qt5Widgets_FOUND) + set(CMAKE_C_COMPILER gcc) set(CMAKE_CXX_STANDARD 11)