# HG changeset patch # User koda # Date 1381442843 -7200 # Node ID b8b5c82eb61b52d82d3d1437d87736e6d9eb86c2 # Parent 217eacb69395035574e1b5d4c64f91fef40c9248 fail early when an incompatible qt version is found diff -r 217eacb69395 -r b8b5c82eb61b QTfrontend/CMakeLists.txt --- a/QTfrontend/CMakeLists.txt Fri Oct 11 00:04:36 2013 +0200 +++ b/QTfrontend/CMakeLists.txt Fri Oct 11 00:07:23 2013 +0200 @@ -13,6 +13,12 @@ find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) +if(APPLE AND + ${QTVERSION} VERSION_GREATER "4.7.0" AND + ${QTVERSION} VERSION_LESS "4.7.4") + message(FATAL_ERROR "This version of QT is known *not* to work, please update or use a lower version") +endif() + find_package(SDL REQUIRED) #video in SDLInteraction find_package(SDL_mixer REQUIRED) #audio in SDLInteraction