Skip to contentSkip to conversation

cmake: Add PACKAGECONFIG option for debugger support

PATCH New Nikhil R 1 participant 1 message Aug 5, 2025

lore
Share & tools
lore

Nikhil R

author
#0 lore raw

PATCH v3 1/1 cmake: Add PACKAGECONFIG option for debugger support

From: Nikhil R <[email protected]>

Starting from CMake version 2.27 support for interactive debugging of CMake scripts and configurations was added. However, by default the nativesdk-cmake is compiled with debugger support turned off.

This change adds debugger support for cmake

---
 meta/recipes-devtools/cmake/cmake_4.0.3.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-devtools/cmake/cmake_4.0.3.bb +3 -1
index 7d8b8cac65..cfc5cb1b93 100644
@@ -43,9 +43,11 @@ EXTRA_OECMAKE = " \
     -DKWSYS_CHAR_IS_SIGNED=1 \
     -DBUILD_CursesDialog=0 \
     -DKWSYS_LFS_WORKS=1 \
-    -DCMake_ENABLE_DEBUGGER=0 \
 "
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[debugger] = "-DCMake_ENABLE_DEBUGGER=1,-DCMake_ENABLE_DEBUGGER=0,"
+
 do_install:append:class-nativesdk() {
     mkdir -p ${D}${datadir}/cmake
     install -m 644 ${UNPACKDIR}/OEToolchainConfig.cmake ${D}${datadir}/cmake/
Signature · 1 line
2.34.1