Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN-6671 Add a warning for qt 6.8.0 #10256

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ find_package(Qt6 COMPONENTS
Xml
Svg
)
include("scripts/cmake/check_qt_breakage.cmake")

if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten" AND
NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Android")
Expand Down
16 changes: 16 additions & 0 deletions scripts/cmake/check_qt_breakage.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# This File Prints a warning if someone tries to compile Qt with a version
# that we know the VPN will break with.

if( ${Qt6_VERSION} VERSION_EQUAL 6.8.0)
message(AUTHOR_WARNING
"******************* WARNING ********************** \n"
"Qt 6.8.0 is known to be broken and will fail to load Mozila VPN \n"
"Please consider upgrading to at least Qt 6.8.1 \n"
"See: https://bugreports.qt.io/browse/QTBUG-129500 \n"
"****************************************************"
)
endif()
Loading