Commit 9c0c9486 authored by Matthias Möller's avatar Matthias Möller

switched QT version warning from compiler warning to configure warning.

Appears right after Qt was found in OF

closes #2528

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@21155 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 77695504
......@@ -62,10 +62,19 @@ if (QT4_FOUND)
message(STATUS "Using QT4 for OpenFlipper")
elseif(QT5_FOUND)
message(STATUS "Using QT5 for OpenFlipper")
set (OF_MAX_QT_VERSION "5.3.2")
if (${Qt5Core_VERSION_STRING} STRGREATER ${OF_MAX_QT_VERSION})
message(WARNING "Detected QT Version higher than ${OF_MAX_QT_VERSION}!\n"
"OpenFlipper has not been tested with this QT Version on Windows.")
endif()
else()
message(FATAL_ERROR "Could not found any QT Version. Please specify QT5_INSTALL_PATH (path to bin and include dir) to build with QT5 or specify the QT_QMAKE_EXECUTABLE to build with QT4")
endif()
if (QT5_FOUND)
endif()
acg_openmp ()
#acg_ftgl ()
......
......@@ -73,17 +73,6 @@
#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__ * 10)
#if QT_VERSION > 0x050302
#ifdef WIN32
#pragma message("Detected QT Version higher than 5.3.2!")
#pragma message("OpenFlipper has not been tested with this QT Version on Windows.")
#else
#warning Detected QT Version higher than 5.3.2!
#warning OpenFlipper has not been tested with this QT Version.
#endif
#endif
//== DEEFINES =================================================================
/** Force static casts for Properties in OpenMesh.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment