Commit 5617478f authored by Martin Schultz's avatar Martin Schultz

added cmake error and flag to override in case unsupported Qt 5.8.0 is

used on windows if the flag USE_UNSUPPORTED_QT is set, only a warning is
displayed, otherwise a fatal error
parent 01314b13
Pipeline #5440 failed with stage
in 61 minutes and 53 seconds
......@@ -79,6 +79,17 @@ if (NOT QT5_FOUND)
message(FATAL_ERROR "Could not found any QT Version. Please specify QT5_INSTALL_PATH (path to bin and include dir) to build with QT5")
endif()
if ( WIN32 )
SET(USE_UNSUPPORTED_QT false CACHE)
if ( ${Qt5Core_VERSION_STRING} STREQUALS "5.8.0" )
if(USE_UNSUPPORTED_QT)
message(WARNING "You appear to be using Qt 5.8.0 on a Windows System.\n On Windows, this version of Qt causes a problem regarding moc generation.\n You are using this Qt Version on Windows at your own risk and without support." )
else()
message(FATAL_ERROR "You appear to be using Qt 5.8.0 on a Windows System.\n On Windows, this version of Qt causes a problem regarding moc generation.\n Please use another version of Qt, or set the USE_UNSUPPORTED_QT flag")
endif()
endif()
endif()
set (OF_MAX_QT_VERSION "5.9.0")
if (${Qt5Core_VERSION_STRING} STRGREATER ${OF_MAX_QT_VERSION})
......
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