diff options
| author | Joerg Bornemann <[email protected]> | 2020-03-06 09:28:12 +0100 |
|---|---|---|
| committer | Joerg Bornemann <[email protected]> | 2020-03-06 13:38:13 +0100 |
| commit | a3d0ef019a2a592d55035adc784d5d0475f39a74 (patch) | |
| tree | 0fbf38828aa34c28933c3d2748ebf971791151f4 /util/cmake/configurejson2cmake.py | |
| parent | b4f19e427775311c769f3a29864f9ad72ee2d791 (diff) | |
CMake: Fix condition of the 'debug' feature
For the moment, in feature conditions that use STREQUAL, the lhs must be
a variable.
Change-Id: I56fe24baeb8067662ea81984fd48383da4c5b67b
Reviewed-by: Alexandru Croitor <[email protected]>
Diffstat (limited to 'util/cmake/configurejson2cmake.py')
| -rwxr-xr-x | util/cmake/configurejson2cmake.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py index f0fb4f08171..b024c764597 100755 --- a/util/cmake/configurejson2cmake.py +++ b/util/cmake/configurejson2cmake.py @@ -771,7 +771,7 @@ def parseFeature(ctx, feature, data, cm_fh): "autoDetect": "1", # Setting this to None has weird effects... "condition": "QT_GENERATOR_IS_MULTI_CONFIG" }, - "debug": {"condition": "Debug STREQUAL CMAKE_BUILD_TYPE OR Debug IN_LIST CMAKE_CONFIGURATION_TYPES"}, + "debug": {"condition": "CMAKE_BUILD_TYPE STREQUAL Debug OR Debug IN_LIST CMAKE_CONFIGURATION_TYPES"}, "dlopen": {"condition": "UNIX"}, "doubleconversion": None, "enable_gdb_index": None, |
