summaryrefslogtreecommitdiffstats
path: root/cmake/QtBuild.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-08-18 10:59:03 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-08-19 08:28:50 +0200
commit5f729da74a5c12a8d33389dcc874c8277044abe0 (patch)
tree52b2d498e949155cdc43efd2a48066b0c7d7ceec /cmake/QtBuild.cmake
parent3911be61602695ed65e33e54bee38ee8bcd92539 (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 'cmake/QtBuild.cmake')
-rw-r--r--cmake/QtBuild.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index d85acbd1c9..32277a13cc 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -142,6 +142,10 @@ else()
set(QT_STAGING_PREFIX "${CMAKE_INSTALL_PREFIX}")
endif()
+if(PROJECT_NAME STREQUAL "QtBase")
+ set(QT_COORD_TYPE double CACHE STRING "Type of qreal")
+endif()
+
function(qt_internal_set_up_global_paths)
# Compute the values of QT_BUILD_DIR, QT_INSTALL_DIR, QT_CONFIG_BUILD_DIR, QT_CONFIG_INSTALL_DIR
# taking into account whether the current build is a prefix build or a non-prefix build,