Changeset 4604b6a in subsurface


Ignore:
Timestamp:
Jun 30, 2017, 4:55:53 PM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
6451adf
Parents:
61fff713
Message:

BLE: require Qt 5.6 and suggest Qt 5.9.1

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    rd67421c r4604b6a  
    217217endif()
    218218
    219 #I can't test MacOS, and Windows Qt doesn't support BLE at all afaik
     219# Windows Qt doesn't support BLE at all
     220# Mac hasn't been tested, yet - so far it's disabled
     221# the rest of them need at least 5.6 to be reasonable but really, you want 5.9.1
    220222if (BTSUPPORT AND (ANDROID OR CMAKE_SYSTEM_NAME STREQUAL "Linux"))
    221         set(BLESUPPORT ON)
     223        if ("${Qt5Core_VERSION}" VERSION_LESS 5.6.0)
     224                message(STATUS "Turning off BLE support as Qt version ${Qt5Core_VERSION} is insufficient for that")
     225        else()
     226                set(BLESUPPORT ON)
     227                if ("${Qt5Core_VERSION}" VERSION_LESS 5.9.1)
     228                        message(STATUS "BLE support has been enabled, but for best results you really want Qt 5.9.1")
     229                endif()
     230        endif()
    222231endif()
    223232
Note: See TracChangeset for help on using the changeset viewer.