diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-08-18 10:59:03 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-08-19 08:28:50 +0200 |
commit | 5f729da74a5c12a8d33389dcc874c8277044abe0 (patch) | |
tree | 52b2d498e949155cdc43efd2a48066b0c7d7ceec /configure.cmake | |
parent | 3911be61602695ed65e33e54bee38ee8bcd92539 (diff) |
CMake: Implement configure -qreal <type>
The configure argument -qreal <type> maps to the CMake argument
-DQT_COORD_TYPE=<type>.
Fixes: QTBUG-83325
Change-Id: I94970f31ccfb241b1dd4f1d9b6cef25d6684dc05
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 23915c6eec..f56047b14c 100644 --- a/configure.cmake +++ b/configure.cmake @@ -797,6 +797,12 @@ qt_feature("dbus-linked" PRIVATE ENABLE INPUT_dbus STREQUAL 'linked' DISABLE INPUT_dbus STREQUAL 'runtime' ) +qt_feature("qreal" + LABEL "Type for qreal" + CONDITION DEFINED QT_COORD_TYPE AND NOT QT_COORD_TYPE STREQUAL "double" +) +qt_feature_definition("qreal" "QT_COORD_TYPE" VALUE "${QT_COORD_TYPE}") +qt_feature_definition("qreal" "QT_COORD_TYPE_STRING" VALUE "\"${QT_COORD_TYPE}\"") qt_feature("gui" PRIVATE LABEL "Qt Gui" ) |