summaryrefslogtreecommitdiffstats
path: root/util/cmake/configurejson2cmake.py
diff options
context:
space:
mode:
authorJoerg Bornemann <[email protected]>2020-02-26 13:38:23 +0100
committerJoerg Bornemann <[email protected]>2020-03-05 07:48:11 +0100
commitb99321b78bd011ff9b184e9c28d4b01e14e23969 (patch)
treef4cf8e245d326d2efd21af17742204a0d6dd00ff /util/cmake/configurejson2cmake.py
parent46a2366d12839e009e6010c584ce73e6af04fdbe (diff)
CMake: Port the 'force_debug_info' feature
This feature is read-only and is ON if CMAKE_BUILD_TYPE is RelWithDebInfo or if that value is in CMAKE_CONFIGURATION_TYPES. It mainly exists for the qmake support. Change-Id: I25cb57e832dcfcab100834a104b1a3d34f01086b Reviewed-by: Simon Hausmann <[email protected]> Reviewed-by: Alexandru Croitor <[email protected]>
Diffstat (limited to 'util/cmake/configurejson2cmake.py')
-rwxr-xr-xutil/cmake/configurejson2cmake.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 2c65703d592..f5062d49531 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -709,7 +709,9 @@ def parseFeature(ctx, feature, data, cm_fh):
"doubleconversion": None,
"enable_gdb_index": None,
"enable_new_dtags": None,
- "force_debug_info": None,
+ "force_debug_info": {
+ "autoDetect": "CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo OR RelWithDebInfo IN_LIST CMAKE_CONFIGURATION_TYPES"
+ },
"framework": {"condition": "APPLE AND BUILD_SHARED_LIBS"},
"gc_binaries": None,
"gcc-sysroot": None,