mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-03 01:30:43 +00:00
Update version checking to allow QT 6
This commit is contained in:
parent
e358d31f26
commit
e699ea182d
14
OSCAR_QT.pro
14
OSCAR_QT.pro
@ -1,7 +1,13 @@
|
||||
lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) {
|
||||
message("You need to Qt 5.9 or newer to build OSCAR with Help Pages")
|
||||
lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,7) {
|
||||
error("You need Qt 5.7 or newer to build OSCAR")
|
||||
lessThan(QT_MAJOR_VERSION,5) {
|
||||
error("You need Qt 5.7 or newer to build OSCAR");
|
||||
}
|
||||
|
||||
if (equals(QT_MAJOR_VERSION,5)) {
|
||||
lessThan(QT_MINOR_VERSION,9) {
|
||||
message("You need Qt 5.9 to build OSCAR with Help Pages")
|
||||
}
|
||||
lessThan(QT_MINOR_VERSION,7) {
|
||||
error("You need Qt 5.7 or newer to build OSCAR");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,14 +6,20 @@
|
||||
|
||||
message(Platform is $$QMAKESPEC )
|
||||
|
||||
lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) {
|
||||
message("You need Qt 5.9 to build OSCAR with Help Pages")
|
||||
DEFINES += helpless
|
||||
}
|
||||
lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,7) {
|
||||
lessThan(QT_MAJOR_VERSION,5) {
|
||||
error("You need Qt 5.7 or newer to build OSCAR");
|
||||
}
|
||||
|
||||
if (equals(QT_MAJOR_VERSION,5)) {
|
||||
lessThan(QT_MINOR_VERSION,9) {
|
||||
message("You need Qt 5.9 to build OSCAR with Help Pages")
|
||||
DEFINES += helpless
|
||||
}
|
||||
lessThan(QT_MINOR_VERSION,7) {
|
||||
error("You need Qt 5.7 or newer to build OSCAR");
|
||||
}
|
||||
}
|
||||
|
||||
# get rid of the help browser, at least for now
|
||||
DEFINES += helpless
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user