From: Nikhil R Date: Tue, 5 Aug 2025 07:24:43 +0000 (+0530) Subject: cmake: Add PACKAGECONFIG option for debugger support X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8acfca456c3502f0d097ba01a2d08f83fb75ab60;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake: Add PACKAGECONFIG option for debugger support 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 Signed-off-by: Nikhil R Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/cmake/cmake_4.0.3.bb b/meta/recipes-devtools/cmake/cmake_4.0.3.bb index 7d8b8cac65..cfc5cb1b93 100644 --- a/meta/recipes-devtools/cmake/cmake_4.0.3.bb +++ b/meta/recipes-devtools/cmake/cmake_4.0.3.bb @@ -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/