Skip to content
Browse files

Prevent builds which utilise API deprecated in <= Qt 5.8

Ideally this would be at least 5.9 (the minimum Qt version supported),
but unfortunately the Qwt libraries utilise QString::null in public
headers which was deprecated in Qt 5.9.

I've got a feeling Qwt is going to be a pain point once again when
Qt6 rolls around...
  • Loading branch information
nyalldawson committed Feb 6, 2020
1 parent aad4e84 commit 06d4dee5233eee4bbee79db5e92685e48b73a1f2
Showing with 4 additions and 0 deletions.
  1. +4 −0 CMakeLists.txt
@@ -604,6 +604,10 @@ IF(MSVC)

# Prevent build when Qt api deprecated before this Qt version is used:
# Unfortunately Qwt uses deprecated QString::null in headers, preventing this being raised above 5.8

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage --coverage")

0 comments on commit 06d4dee

Please sign in to comment.
You can’t perform that action at this time.